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

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

index b99b1f0..e02ae9d 100644 (file)
@@ -45,7 +45,7 @@
                                 {
                                     "listeners": {
                                         "|render": "function() \n{\n    _this.grid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.panel.active) {\n       this.footer.onClick('first');\n    }\n}",
-                                        "|rowdblclick": "function (_self, rowIndex, e)\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {\n        _this.grid.footer.onClick('first');\n    }); \n}\n"
+                                        "|rowdblclick": "function (_self, rowIndex, e)\n{\n    Pman.Dialog.XtupleCurrency.show({curr_id : 0}, function() {\n        _this.grid.footer.onClick('first');\n    }); \n}\n"
                                     },
                                     "*prop": "grid",
                                     "autoExpandColumn": "curr_name",
index 3a28011..d311739 100644 (file)
@@ -55,8 +55,7 @@ Pman.Tab.XtupleCurrency = new Roo.XComponent({
                                 },
                                 rowdblclick : function (_self, rowIndex, e)
                                 {
-                                    if (!_this.dialog) return;
-                                    _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
+                                    Pman.Dialog.XtupleCurrency.show({curr_id : 0}, function() {
                                         _this.grid.footer.onClick('first');
                                     }); 
                                 }