@@ -5213,7 +5213,7 @@ Evol.viewClasses = {
52135213} ;
52145214
52155215// toolbar widget which also acts as a controller for all views "one" and "many" as well as actions
5216- Evol . ViewToolbar = function ( ) {
5216+ Evol . Toolbar = function ( ) {
52175217
52185218 var eUI = Evol . UI ,
52195219 i18n = Evol . i18n ;
@@ -6217,7 +6217,7 @@ Evol.App = Backbone.View.extend({
62176217 } ,
62186218
62196219 options : {
6220- //uiModelsObj : {},
6220+ //uiModels : {},
62216221 elements :{
62226222 nav : '.evo-head-links' ,
62236223 nav2 : '.evo-head-links2' ,
@@ -6231,7 +6231,11 @@ Evol.App = Backbone.View.extend({
62316231
62326232 initialize : function ( opts ) {
62336233 _ . extend ( this , this . options , opts ) ;
6234- this . uiModels = _ . flatten ( this . uiModelsObj ) ;
6234+ var uims = { } ;
6235+ _ . forEach ( this . uiModels , function ( uim , idx ) {
6236+ uims [ uim . id || 'uim' + idx ] = uim ;
6237+ } ) ;
6238+ this . uiModelsObj = uims ;
62356239 this . _tbs = { } ;
62366240 this . _ents = { } ;
62376241 var es = this . elements ;
@@ -6250,7 +6254,7 @@ Evol.App = Backbone.View.extend({
62506254
62516255 setupRouter : function ( ) {
62526256 var that = this ,
6253- EvolRouter = Backbone . Router . extend ( {
6257+ EvolRouter = Backbone . Router . extend ( {
62546258 routes : {
62556259 '' : 'nav' ,
62566260 //':entity/:view/:id': 'nav',
@@ -6388,7 +6392,7 @@ Evol.App = Backbone.View.extend({
63886392 if ( that . useRouter ) {
63896393 config . router = that . router ;
63906394 }
6391- var tb = new Evol . ViewToolbar ( config ) . render ( ) ; //.setTitle();
6395+ var tb = new Evol . Toolbar ( config ) . render ( ) ; //.setTitle();
63926396 if ( options && tb . cardinality === '1' ) {
63936397 tb . setModelById ( options ) ;
63946398 }
0 commit comments