mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-06 20:55:30 +02:00
* Some work on User creation/persistance
* Fix some MCI parsing from menu.json * Add 'options' to menu entries
This commit is contained in:
parent
2bac8e006e
commit
85a72935fa
7 changed files with 138 additions and 10 deletions
|
@ -216,6 +216,8 @@ ViewController.prototype.loadFromMCIMapAndConfig = function(options, cb) {
|
|||
var initialFocusId;
|
||||
var formConfig;
|
||||
|
||||
var mciRegEx = /([A-Z]{2})([0-9]{1,2})/;
|
||||
|
||||
// :TODO: remove all the passing of fromConfig - use local
|
||||
// :TODO: break all of this up ... a lot
|
||||
|
||||
|
@ -256,7 +258,8 @@ ViewController.prototype.loadFromMCIMapAndConfig = function(options, cb) {
|
|||
function applyFormConfig(callback) {
|
||||
if(formConfig) {
|
||||
async.each(Object.keys(formConfig.mci), function onMciConf(mci, eachCb) {
|
||||
var viewId = parseInt(mci[2]); // :TODO: what about auto-generated ID's? Do they simply not apply to menu configs?
|
||||
var mciMatch = mci.match(mciRegEx); // :TODO: what about auto-generated IDs? Do they simply not apply to menu configs?
|
||||
var viewId = parseInt(mciMatch[2]);
|
||||
var view = self.getView(viewId);
|
||||
var mciConf = formConfig.mci[mci];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue