From 4f6de2194605bb39593c99c2553e3fa148fe3018 Mon Sep 17 00:00:00 2001 From: Edward Date: Wed, 6 May 2015 17:12:06 +0800 Subject: [PATCH] resources/Editors/Editor.Roo.LayoutDialog.bjs resources/Editors/Editor.Roo.LayoutDialog.js --- resources/Editors/Editor.Roo.LayoutDialog.bjs | 2 +- resources/Editors/Editor.Roo.LayoutDialog.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/Editors/Editor.Roo.LayoutDialog.bjs b/resources/Editors/Editor.Roo.LayoutDialog.bjs index 89669c4e1..5a5773c6d 100644 --- a/resources/Editors/Editor.Roo.LayoutDialog.bjs +++ b/resources/Editors/Editor.Roo.LayoutDialog.bjs @@ -38,7 +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 \n \n _this.grid.colModel.getCellEditor(e.column, e.row).field.store.loadData(e.record.data.relates_to_schema);\n}", + "beforeedit" : "function (e)\n{\n Roo.log('before edit!!!');\n Roo.log(e);\n \n if(e.field != 'dfield'){\n return false;\n }\n \n _this.grid.colModel.getCellEditor(e.column, e.row).field.store.loadData(e.record.data.relates_to_schema);\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 918a56f17..c0254efd5 100644 --- a/resources/Editors/Editor.Roo.LayoutDialog.js +++ b/resources/Editors/Editor.Roo.LayoutDialog.js @@ -458,6 +458,9 @@ Editor.Roo.LayoutDialog = new Roo.XComponent({ Roo.log('before edit!!!'); Roo.log(e); + if(e.field != 'dfield'){ + return false; + } _this.grid.colModel.getCellEditor(e.column, e.row).field.store.loadData(e.record.data.relates_to_schema); }, -- 2.39.2