* 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

@ -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];