From b8a24adbd75222962062e0188b297606f20d47cf Mon Sep 17 00:00:00 2001 From: Edward Date: Wed, 6 May 2015 12:55:34 +0800 Subject: [PATCH] resources/Editors/Editor.Roo.LayoutDialog.bjs resources/Editors/Editor.Roo.LayoutDialog.js --- resources/Editors/Editor.Roo.LayoutDialog.bjs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/resources/Editors/Editor.Roo.LayoutDialog.bjs b/resources/Editors/Editor.Roo.LayoutDialog.bjs index 679743b78..0ee04d289 100644 --- a/resources/Editors/Editor.Roo.LayoutDialog.bjs +++ b/resources/Editors/Editor.Roo.LayoutDialog.bjs @@ -37,8 +37,8 @@ { "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", @@ -69,8 +69,8 @@ }, { "xtype" : "ColumnModel", - "width" : 75, "header" : "Use ", + "width" : 75, "$ renderer" : "function(v) { \n var state = v *1 > 0 ? '-checked' : '';\n\n return '';\n \n }", "$ xns" : "Roo.grid", "* prop" : "cm[]", @@ -78,8 +78,8 @@ }, { "xtype" : "ColumnModel", - "header" : "Database Column", "width" : 150, + "header" : "Database Column", "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "cm[]", @@ -87,8 +87,8 @@ }, { "xtype" : "ColumnModel", - "width" : 100, "header" : "Type", + "width" : 100, "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "cm[]", @@ -96,8 +96,8 @@ }, { "xtype" : "ColumnModel", - "header" : "Label", "width" : 120, + "header" : "Label", "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "cm[]", @@ -119,8 +119,8 @@ }, { "xtype" : "ColumnModel", - "width" : 120, "header" : "Field Type", + "width" : 120, "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "cm[]", @@ -161,8 +161,8 @@ }, { "xtype" : "ColumnModel", - "header" : "Display Field", "width" : 150, + "header" : "Display Field", "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "cm[]", @@ -203,8 +203,8 @@ }, { "xtype" : "ColumnModel", - "width" : 75, "header" : "Width", + "width" : 75, "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "cm[]", -- 2.39.2