From 7ece3fbe17c00d3d41d50b2bbc8051a397e1fb04 Mon Sep 17 00:00:00 2001 From: edward Date: Mon, 21 Nov 2016 15:54:59 +0800 Subject: [PATCH] Pman.Tab.BuilderDatabase.bjs Pman.Tab.BuilderDatabase.js --- Pman.Tab.BuilderDatabase.bjs | 2 +- Pman.Tab.BuilderDatabase.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Pman.Tab.BuilderDatabase.bjs b/Pman.Tab.BuilderDatabase.bjs index a224c9f..f4cfcaf 100644 --- a/Pman.Tab.BuilderDatabase.bjs +++ b/Pman.Tab.BuilderDatabase.bjs @@ -202,7 +202,7 @@ "items" : [ { "listeners" : { - "|rowdblclick" : "function (_self, rowIndex, e)\n{\n if (!_this.dialog) return;\n _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {\n _this.grid.footer.onClick('first');\n }); \n}\n", + "|rowdblclick" : "function (_self, rowIndex, e)\n{\n if (!_this.dialog) {\n return;\n }\n \n _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {\n _this.grid.footer.onClick('first');\n }); \n}\n", "|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}" }, "autoExpandColumn" : "table", diff --git a/Pman.Tab.BuilderDatabase.js b/Pman.Tab.BuilderDatabase.js index bc1347d..71f3fd5 100644 --- a/Pman.Tab.BuilderDatabase.js +++ b/Pman.Tab.BuilderDatabase.js @@ -409,7 +409,10 @@ Pman.Tab.BuilderDatabase = new Roo.XComponent({ }, rowdblclick : function (_self, rowIndex, e) { - if (!_this.dialog) return; + if (!_this.dialog) { + return; + } + _this.dialog.show( this.getDataSource().getAt(rowIndex), function() { _this.grid.footer.onClick('first'); }); -- 2.39.2