From: Alan Knowles Date: Tue, 15 Oct 2013 07:16:17 +0000 (+0800) Subject: Pman.Dialog.AdminCoreEnum.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=commitdiff_plain;h=3a41f1a988e312477f5ae8cd5cbcff0a294a49d7 Pman.Dialog.AdminCoreEnum.bjs Pman.Dialog.AdminCoreEnum.js --- diff --git a/Pman.Dialog.AdminCoreEnum.bjs b/Pman.Dialog.AdminCoreEnum.bjs index 3d80980..0f96de9 100644 --- a/Pman.Dialog.AdminCoreEnum.bjs +++ b/Pman.Dialog.AdminCoreEnum.bjs @@ -32,7 +32,7 @@ "items": [ { "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}", + "|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}", "afteredit": "function (e)\n{\n e.record.commit(); \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 ? 0 : 1);\n rec.commit();\n \n \n}", "beforeedit": "function (e)\n{\n if(e.field == 'name' && e.record.data.is_system_enum*1 == 1){\n return false;\n }\n}" diff --git a/Pman.Dialog.AdminCoreEnum.js b/Pman.Dialog.AdminCoreEnum.js index 0557cce..a258161 100644 --- a/Pman.Dialog.AdminCoreEnum.js +++ b/Pman.Dialog.AdminCoreEnum.js @@ -60,7 +60,7 @@ Pman.Dialog.AdminCoreEnum = { _this.grid = this; //_this.dialog = Pman.Dialog.FILL_IN if (_this.panel.active) { - this.footer.onClick('first'); + // this.footer.onClick('first'); } }, afteredit : function (e)