"items": [
{
"listeners": {
- "click": "function (_self, e)\n{\n if (!_this.modsel.getValue()) {\n Roo.MessageBox.alert(\"Error\", \"Select Module\");\n return false;\n }\n if (!_this.filesel.getValue()) {\n Roo.MessageBox.alert(\"Error\", \"Select Part\");\n return false;\n }\n Pman.Dialog.BuilderPart.show( {\n id : _this.filesel.getValue(),\n module_id: _this.modsel.getValue() \n } ,\n function(data) {\n //_this.filesel.reset();\n if (!data.id) {\n return;\n }\n _this.filesel.setfromdata(data);\n \n pt.loadBJS(_this.modsel.getValue(), _this.filesel.getValue())\n });\n\n}"
+ "click": "function (_self, e)\n{\n if (!_this.modsel.getValue()) {\n Roo.MessageBox.alert(\"Error\", \"Select Module\");\n return false;\n }\n if (!_this.filesel.getValue()) {\n Roo.MessageBox.alert(\"Error\", \"Select Part\");\n return false;\n }\n Pman.Dialog.BuilderPart.show( {\n id : _this.filesel.getValue(),\n module_id: _this.modsel.getValue() \n } ,\n function(data) {\n //_this.filesel.reset();\n if (!data.id) {\n return;\n }\n _this.filesel.setFromData(data);\n // set the part name on the json..\n \n \n pt.loadBJS(_this.modsel.getValue(), _this.filesel.getValue())\n });\n\n}"
},
"text": "Rename",
"xtype": "Item",
if (!data.id) {
return;
}
- _this.filesel.setfromdata(data);
-
+ _this.filesel.setFromData(data);
+ // set the part name on the json..
+
+
pt.loadBJS(_this.modsel.getValue(), _this.filesel.getValue())
});