From 280f97f36194529b1eb0e631c94f6228b0a145bb Mon Sep 17 00:00:00 2001 From: Edward Date: Wed, 6 May 2015 16:57:10 +0800 Subject: [PATCH] resources/Editors/Editor.Roo.LayoutDialog.bjs resources/Editors/Editor.Roo.LayoutDialog.js --- resources/Editors/Editor.Roo.LayoutDialog.bjs | 1 + resources/Editors/Editor.Roo.LayoutDialog.js | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/resources/Editors/Editor.Roo.LayoutDialog.bjs b/resources/Editors/Editor.Roo.LayoutDialog.bjs index ee7c9f6fa..b2a5eef43 100644 --- a/resources/Editors/Editor.Roo.LayoutDialog.bjs +++ b/resources/Editors/Editor.Roo.LayoutDialog.bjs @@ -38,6 +38,7 @@ { "listeners" : { "|rowdblclick" : "function (_self, rowIndex, e)\n{\n if (!_this.dialog) return;\n \n}\n", + "beforeedit" : "function (e)\n{\n Roo.log('before edit!!!');\n Roo.log(e);\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}" }, diff --git a/resources/Editors/Editor.Roo.LayoutDialog.js b/resources/Editors/Editor.Roo.LayoutDialog.js index 8cd342e0c..68f1f72d1 100644 --- a/resources/Editors/Editor.Roo.LayoutDialog.js +++ b/resources/Editors/Editor.Roo.LayoutDialog.js @@ -458,6 +458,11 @@ Editor.Roo.LayoutDialog = new Roo.XComponent({ } ], listeners : { + beforeedit : function (e) + { + Roo.log('before edit!!!'); + Roo.log(e); + }, cellclick : function (_self, rowIndex, columnIndex, e) { -- 2.39.2