From 83fafd4cec2682ff16b54cc263bee258677c0da2 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 17 Apr 2015 09:41:57 +0800 Subject: [PATCH] resources/Editors/Editor.Roo.grid.Grid.bjs resources/Editors/Editor.Roo.grid.Grid.js --- resources/Editors/Editor.Roo.grid.Grid.bjs | 5 ++--- resources/Editors/Editor.Roo.grid.Grid.js | 5 ----- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/resources/Editors/Editor.Roo.grid.Grid.bjs b/resources/Editors/Editor.Roo.grid.Grid.bjs index 1bb1c83e6..8306ff200 100644 --- a/resources/Editors/Editor.Roo.grid.Grid.bjs +++ b/resources/Editors/Editor.Roo.grid.Grid.bjs @@ -33,9 +33,8 @@ "items" : [ { "listeners" : { - "|rowdblclick" : "function (_self, rowIndex, e)\n{\n if (!_this.dialog) return;\n \n}\n", - "|render" : "function() \n{\n _this.grid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n\n}", - "cellclick" : "function (_self, rowIndex, columnIndex, e)\n{\n\n var di = this.colModel.getDataIndex(columnIndex);\n if (di != 'active') {\n return;\n }\n \n var rec = _this.grid.ds.getAt(rowIndex);\n \n rec.set('active', rec.data.active * 1 ? 0 : 1);\n rec.commit();\n \n \n}" + "cellclick" : "function (_self, rowIndex, columnIndex, e)\n{\n\n var di = this.colModel.getDataIndex(columnIndex);\n if (di != 'active') {\n return;\n }\n \n var rec = _this.grid.ds.getAt(rowIndex);\n \n rec.set('active', rec.data.active * 1 ? 0 : 1);\n rec.commit();\n \n \n}", + "|render" : "function() \n{\n _this.grid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n\n}" }, "Number clicksToEdit" : 1, "autoExpandColumn" : "title", diff --git a/resources/Editors/Editor.Roo.grid.Grid.js b/resources/Editors/Editor.Roo.grid.Grid.js index 420e5b310..584c849d8 100644 --- a/resources/Editors/Editor.Roo.grid.Grid.js +++ b/resources/Editors/Editor.Roo.grid.Grid.js @@ -172,11 +172,6 @@ Editor.Roo.grid.Grid = new Roo.XComponent({ _this.grid = this; //_this.dialog = Pman.Dialog.FILL_IN - }, - rowdblclick : function (_self, rowIndex, e) - { - if (!_this.dialog) return; - } }, items : [ -- 2.39.2