Pman.Tab.BuilderTop.bjs
authorAlan Knowles <alan@roojs.com>
Fri, 7 Feb 2014 02:38:56 +0000 (10:38 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 7 Feb 2014 02:38:56 +0000 (10:38 +0800)
Pman.Tab.BuilderTop.js

Pman.Tab.BuilderTop.bjs
Pman.Tab.BuilderTop.js

index bbd024a..4af9ad8 100644 (file)
                                     "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",
index 8a27bad..466c467 100644 (file)
@@ -201,8 +201,10 @@ Pman.Tab.BuilderTop = new Roo.XComponent({
                                                     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())
                                             });