"xtype": "Dialog",
"|deletable": "false",
"|modal": "true",
- "|void:show": "(JsRender.JsRender c) \n{\n this.project = c.project;\n \n if (!this.el) {\n //this.init();\n }\n \n this.def = { \n name : '' , \n title : '' ,\n region : '' ,\n parent: '',\n // disable: '',\n modOrder : '0',\n permname : ''\n };\n \n \n for (var i in this.def) {\n c[i] = c[i] || this.def[i];\n this.get(i).el.set_text(c[i]);\n }\n \n if (c.name.length > 0) {\n this.el.set_title(\"Edit File Details - \" + c.name);\n } else {\n this.el.set_title(\"Create New File\");\n }\n \n this.file = c;\n console.log('show all');\n this.el.show_all();\n this.success = c.success;\n \n \n}",
+ "|void:show": "(JsRender.JsRender c) \n{\n this.project = c.project;\n \n if (!this.el) {\n //this.init();\n }\n \n this.def = { \n name : '' , \n title : '' ,\n region : '' ,\n parent: '',\n // disable: '',\n modOrder : '0',\n permname : ''\n };\n \n \n for (var i in this.def) {\n c[i] = c[i] || this.def[i];\n this.get(i).el.set_text(c[i]);\n }\n \n if (c.path.length > 0) {\n this.el.set_title(\"Edit File Details - \" + c.name);\n } else {\n this.el.set_title(\"Create New File\");\n }\n \n this.file = c;\n console.log('show all');\n this.el.show_all();\n this.success = c.success;\n \n \n}",
"|xns": "Gtk",
"items": [
{
this.get(i).el.set_text(c[i]);
}
- if (c.name.length > 0) {
+ if (c.path.length > 0) {
this.el.set_title("Edit File Details - " + c.name);
} else {
this.el.set_title("Create New File");
this.get(i).el.set_text(c[i]);
}
- if (c.name.length > 0) {
+ if (c.path.length > 0) {
this.el.set_title("Edit File Details - " + c.name);
} else {
this.el.set_title("Create New File");