Builder/Provider/File/Roo.js
[app.Builder.js] / Builder / Provider / File / Roo.js
index 7a690f2..a5fcd01 100755 (executable)
@@ -79,6 +79,7 @@ Roo = XObject.define(
         parent : '',
         title : '', // the title on displayed when loading.
         disable : '', // use a function to that returns false to disable this..
+        permname: '', /// permission name
         
         setNSID : function(id)
         {
@@ -115,6 +116,7 @@ Roo = XObject.define(
                 
                 _this.name = cfg.name.replace(/\.bjs/, ''); // BC!
                 _this.parent =  cfg.parent;
+                _this.permname =  cfg.permname || '';
                 _this.title =  cfg.title;
                 _this.items = cfg.items || []; 
                 
@@ -357,7 +359,7 @@ Roo = XObject.define(
                     "        region : '" + this.region   +"',",
                     "        parent : " + (this.parent ||  'false') + ",",
                     "        name : " + JSON.stringify(this.title  || "unnamed module") + ",",
-                    "        disabled : " + (this.disabled || 'false') +" ",
+                    "        disabled : " + (this.disabled || 'false') +", ",
                     "        permname: '" + (this.permname|| '') +"' ",
                     "    });",
                     "});",