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

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

index 0f55196..b99fcbb 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             \n            pt.loadBJS(_this.modsel.getValue(), _this.filesel.getValue())\n    });\n\n}"
                                             },
                                             "text": "Rename",
                                             "xtype": "Item",
index 8d94780..ad253b0 100644 (file)
@@ -193,7 +193,7 @@ Pman.Tab.BuilderTop = new Roo.XComponent({
                                                 return false;
                                             }
                                             Pman.Dialog.BuilderPart.show( {
-                                                     id : this.filesel.getValue(), 
+                                                     id : _this.filesel.getValue(), 
                                                      module_id: _this.modsel.getValue() 
                                                  } ,
                                                  function(data) {