Pman.Tab.XtupleCurrency.bjs
authorEdward <edward@roojs.com>
Fri, 27 Dec 2013 03:52:11 +0000 (11:52 +0800)
committerEdward <edward@roojs.com>
Fri, 27 Dec 2013 03:52:11 +0000 (11:52 +0800)
Pman.Tab.XtupleCurrency.js

Pman.Tab.XtupleCurrency.bjs
Pman.Tab.XtupleCurrency.js

index 6bf8a1e..b99b1f0 100644 (file)
                                             "items": [
                                                 {
                                                     "listeners": {
-                                                        "|click": "function()\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( { id : 0 } , function() {\n        _this.grid.footer.onClick('first');\n   }); \n}\n"
+                                                        "|click": "function()\n{\n    Pman.Dialog.XtupleCurrency.show( { curr_id : 0 } , function() {\n        _this.grid.footer.onClick('first');\n   }); \n}\n"
                                                     },
                                                     "cls": "x-btn-text-icon",
                                                     "text": "Add",
index 21ba875..3a28011 100644 (file)
@@ -133,8 +133,7 @@ Pman.Tab.XtupleCurrency = new Roo.XComponent({
                                         listeners : {
                                             click : function()
                                             {
-                                                if (!_this.dialog) return;
-                                                _this.dialog.show( { id : 0 } , function() {
+                                                Pman.Dialog.XtupleCurrency.show( { curr_id : 0 } , function() {
                                                     _this.grid.footer.onClick('first');
                                                }); 
                                             }