* Some work on User creation/persistance

* Fix some MCI parsing from menu.json
* Add 'options' to menu entries
This commit is contained in:
Bryan Ashby 2015-04-09 22:49:56 -06:00
parent 2bac8e006e
commit 85a72935fa
7 changed files with 138 additions and 10 deletions

View file

@ -42,8 +42,6 @@ ApplyModule.prototype.enter = function(client) {
ApplyModule.prototype.beforeArt = function() {
ApplyModule.super_.prototype.beforeArt.call(this);
this.client.term.write(ansi.resetScreen());
};
ApplyModule.prototype.mciReady = function(mciMap) {

View file

@ -72,7 +72,7 @@ LoginModule.prototype.enter = function(client) {
LoginModule.prototype.beforeArt = function() {
LoginModule.super_.prototype.beforeArt.call(this);
this.client.term.write(ansi.resetScreen());
//this.client.term.write(ansi.resetScreen());
};
LoginModule.prototype.mciReady = function(mciMap) {

View file

@ -14,6 +14,8 @@
"normal" : ...,
"focus" : ...
}
..note that script/methods should be part of a *theme* - or at least checked first with fallback
}
}
*/
@ -48,6 +50,9 @@
}
}
}
},
"options" : {
"clearScreen" : true
}
},
"login" : {
@ -86,6 +91,9 @@
}
}
}
},
"options" : {
"clearScreen" : true
}
},
"logoff" : {
@ -97,14 +105,23 @@
"module" : "apply",
"form" : {
"0" : {
"ET1ET2ET3ET4ET5ET6ET7ET8ET9TL10TL11TL12" : {
"BN13BN14ET1ET2ET3ET4ET5ET6ET7ET8ET9TL10TL11TL12" : {
"mci" : {
"ET1" : {
"focus" : true
},
"BN13" : {
"text" : "Apply"
},
"BN14" : {
"text" : "Cancel"
}
}
}
}
},
"options" : {
"clearScreen" : true
}
}
}

View file

@ -27,8 +27,6 @@ StandardMenuModule.prototype.enter = function(client) {
StandardMenuModule.prototype.beforeArt = function() {
StandardMenuModule.super_.prototype.beforeArt.call(this);
this.client.term.write(ansi.resetScreen()); // :TODO: this should be optional
};
StandardMenuModule.prototype.mciReady = function(mciMap) {