},
Base,
{
-
+ doubleStringProps : [
+ 'title',
+ 'legend',
+ 'loadingText',
+ 'emptyText',
+ 'qtip',
+ 'value',
+ 'text'
+ ],
modOrder : '001', /// sequence id that this uses.
region : 'center',
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)
{
_this.title = cfg.title;
_this.items = cfg.items || [];
- //_this.fixItems(_this, false);
+ _this.fixItems(_this, false);
"",
" this.callback = cb;",
" this.data = data;",
- " this.dialog.show();",
+ " this.dialog.show(this.data._el);",
" if (this.form) {",
" this.form.reset();",
" this.form.setValues(data);",
" 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|| '') +"' ",
" });",
"});",
"",
this.outputHeader(),
this.name + " = new Roo.XComponent({",
- " order: '" +modkey+"',",
- " region : '" + this.region +"',",
- " parent : " '+ (this.parent || 'false') + "',",
- " name : " + JSON.stringify(this.title || "unnamed module") + ",",
- " disabled : " + (this.disabled || 'false') +" ",
- " items : [ ",
- " " + o,
- " ]",
+ " order : '" +modkey+"',",
+ " region : '" + this.region +"',",
+ " parent : "+ (this.parent ? "'" + this.parent + "'" : 'false') + ",",
+ " name : " + JSON.stringify(this.title || "unnamed module") + ",",
+ " disabled : " + (this.disabled || 'false') +", ",
+ " tree : function()",
+ " {",
+ " var _this = this;", // bc
+ " var MODULE = this;", /// this looks like a better name.
+ " return " + o + ';',
+ " }",
"});",
""