mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-24 11:38:27 +02:00
* Lots of WIP around menu.json handlinge/etc.
This commit is contained in:
parent
8c9b0e729f
commit
d6ffa2b26e
6 changed files with 162 additions and 42 deletions
|
@ -37,11 +37,13 @@ StandardMenuModule.prototype.mciReady = function(mciMap) {
|
|||
var self = this;
|
||||
|
||||
var vc = self.addViewController(new ViewController(self.client));
|
||||
vc.loadFromMCIMapAndConfig(mciMap, self.menuConfig, function onViewReady(err) {
|
||||
vc.loadFromMCIMapAndConfig( { mciMap : mciMap, menuConfig : self.menuConfig }, function onViewReady(err) {
|
||||
if(err) {
|
||||
console.log(err);
|
||||
} else {
|
||||
// vc.switchFocus(1);
|
||||
/* vc.on('submit', function onFormSubmit(formData) {
|
||||
console.log(formData);
|
||||
});*/
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -117,8 +119,8 @@ StandardMenuModule.prototype.mciReady = function(mciMap) {
|
|||
};
|
||||
|
||||
if(0 === form.id && 1 === form.submitId) {
|
||||
console.log(viewModuleMap[form.values[1]]);
|
||||
self.client.gotoMenuModule(viewModuleMap[form.values[1]]);
|
||||
console.log(viewModuleMap[form.value[1]]);
|
||||
self.client.gotoMenuModule(viewModuleMap[form.value[1]]);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue