mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-06 12:47:13 +02:00
* New menu stack functional
* @systemMethod:fallbackMenu -> @systemMethod:prevMenu * Lots of cleanup of gotoMenuModule() -> MenuModule.gotoMenu() * Lots of cleanup of fallbackMenuModule() -> MenuModule.prevMenu() * Lots of cleanup of 'next' processing -> MenuModule.nextMenu() * Clean up CPU strings a bit more
This commit is contained in:
parent
15ce69e02c
commit
f7a7423b32
11 changed files with 86 additions and 193 deletions
|
@ -14,7 +14,7 @@ var iconv = require('iconv-lite');
|
|||
|
||||
exports.login = login;
|
||||
exports.logoff = logoff;
|
||||
exports.fallbackMenu = fallbackMenu;
|
||||
exports.prevMenu = prevMenu;
|
||||
|
||||
function login(callingMenu, formData, extraArgs) {
|
||||
var client = callingMenu.client;
|
||||
|
@ -49,7 +49,7 @@ function login(callingMenu, formData, extraArgs) {
|
|||
|
||||
} else {
|
||||
// success!
|
||||
client.gotoMenuModule( { name : callingMenu.menuConfig.next } );
|
||||
callingMenu.nextMenu();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -74,10 +74,10 @@ function logoff(callingMenu, formData, extraArgs) {
|
|||
}, 500);
|
||||
}
|
||||
|
||||
function fallbackMenu(callingMenu, formData, extraArgs) {
|
||||
callingMenu.client.fallbackMenuModule( { extraArgs : extraArgs }, function result(err) {
|
||||
function prevMenu(callingMenu, formData, extraArgs) {
|
||||
callingMenu.prevMenu(function result(err) {
|
||||
if(err) {
|
||||
callingMenu.client.log.error( { error : err }, 'Error attempting to fallback!');
|
||||
callingMenu.client.log.error( { error : err.toString() }, 'Error attempting to fallback!');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue