Added System Error frame and Invalid Login frame
This commit is contained in:
@@ -144,6 +144,9 @@ function ANSIFrame() {
|
||||
|
||||
} catch (error) {
|
||||
log(LOG_ERROR,'Frame error: '+error);
|
||||
|
||||
// Load our system error frame.
|
||||
this.load('998a');
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@@ -29,7 +29,7 @@ var FRAME_TYPE_RESPONSE ='r'; // Response frame, input fields are embedded in t
|
||||
// response will be submitted to the Service Provider, or to a method
|
||||
var FRAME_TYPE_LOGIN ='l'; // Login frame, enables the user to authenticate to the system, or to a CUG
|
||||
|
||||
var NO_HISTORY_FRAMES =['980a','98b','981a','982a'];
|
||||
var NO_HISTORY_FRAMES =['980a','98b','981a','982a','983a','998a'];
|
||||
var SYSTEM_OWNER =9;
|
||||
var INKEY_TIMEOUT =10000;
|
||||
var INACTIVE_NOLOGIN =30000;
|
||||
|
@@ -77,6 +77,9 @@ function VIEWDATAFrame() {
|
||||
this.type = FRAME_TYPE_INFO; // The frame type - see FRAME_TYPES above
|
||||
this.key=[ null,null,null,null,null,null,null,null,null,null ]; // Key actions [0-9]
|
||||
|
||||
/**
|
||||
* Set the attribute at the current position
|
||||
*/
|
||||
this.attr=function(field) {
|
||||
//NOOP
|
||||
}
|
||||
@@ -168,6 +171,9 @@ function VIEWDATAFrame() {
|
||||
|
||||
} catch (error) {
|
||||
log(LOG_ERROR,'Frame error: '+error);
|
||||
|
||||
// Load our system error frame.
|
||||
this.load('998a');
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -194,6 +200,10 @@ function VIEWDATAFrame() {
|
||||
var output = '';
|
||||
this.frame_fields = [];
|
||||
|
||||
// If there is no text return
|
||||
if (! text)
|
||||
return output;
|
||||
|
||||
// Default Attributes
|
||||
f = 39;
|
||||
b = 49;
|
||||
|
Reference in New Issue
Block a user