* 'action' must be part of a *menu* not a prompt (they remain generic)

* Menus and prompts in better harmony
* Very eary WIP of converting login/apply/etc. to new system. These can now be helper scirpts and not full MenuModules (very simple!)
This commit is contained in:
Bryan Ashby 2015-04-19 22:58:18 -06:00
parent bac2f63c1a
commit 8db72430d3
7 changed files with 270 additions and 267 deletions

View file

@ -13,13 +13,13 @@ var async = require('async');
// :TODO: clean up requires
exports.moduleInfo = {
/*exports.moduleInfo = {
name : 'Login',
desc : 'Login Module',
author : 'NuSkooler',
};
};*/
exports.getModule = LoginModule;
//exports.getModule = LoginModule;
exports.attemptLogin = attemptLogin;
@ -52,7 +52,7 @@ function attemptLogin(callingMenu, formData, extraArgs) {
});
}
/*
function LoginModule(menuConfig) {
MenuModule.call(this, menuConfig);
@ -130,4 +130,5 @@ LoginModule.prototype.mciReady = function(mciData) {
self.viewController = self.addViewController(new ViewController( { client : self.client } ));
self.viewController.loadFromMCIMapAndConfig( { mciMap : mciData.menu, menuConfig : self.menuConfig }, function onViewReady(err) {
});
};
};
*/