Pman.Dialog.XtupleVendorEdit.bjs
authorAlan Knowles <alan@roojs.com>
Thu, 19 Dec 2013 04:38:56 +0000 (12:38 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 19 Dec 2013 04:38:56 +0000 (12:38 +0800)
Pman.Dialog.XtupleVendorEdit.js

Pman.Dialog.XtupleVendorEdit.bjs
Pman.Dialog.XtupleVendorEdit.js

index e701fa0..6ea4611 100644 (file)
                         {
                             "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   \n   Pman.Dialog.XtupleItem.show({ _id : this.getDataSource().getAt(rowIndex).data.itemsrc_item_id }, function() {\n        _this.grid.footer.onClick('first');\n    }); \n}\n"
                             },
                             "*prop": "grid",
                             "autoExpandColumn": "itemsrc_vend_item_descrip",
index f3c6193..e207f7f 100644 (file)
@@ -516,8 +516,8 @@ Pman.Dialog.XtupleVendorEdit = {
                             },
                             rowdblclick : function (_self, rowIndex, e)
                             {
-                                if (!_this.dialog) return;
-                                _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
+                               
+                               Pman.Dialog.XtupleItem.show({ _id : this.getDataSource().getAt(rowIndex).data.itemsrc_item_id }, function() {
                                     _this.grid.footer.onClick('first');
                                 }); 
                             }