From 2544f0f37fdc1046b2b995d60c3bb486e5b91fcc Mon Sep 17 00:00:00 2001 From: Edward Date: Wed, 6 May 2015 18:01:30 +0800 Subject: [PATCH] resources/Editors/Editor.Roo.GridPanel.bjs resources/Editors/Editor.Roo.GridPanel.js --- resources/Editors/Editor.Roo.GridPanel.bjs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/resources/Editors/Editor.Roo.GridPanel.bjs b/resources/Editors/Editor.Roo.GridPanel.bjs index f7f01046a..effbc0c09 100644 --- a/resources/Editors/Editor.Roo.GridPanel.bjs +++ b/resources/Editors/Editor.Roo.GridPanel.bjs @@ -2,7 +2,7 @@ "name" : "Editor.Roo.GridPanel", "parent" : "", "title" : "", - "path" : "/home/alan/gitlive/app.Builder.js/resources/Editors/Editor.Roo.GridPanel.bjs", + "path" : "/home/edward/gitlive/app.Builder.js/resources/Editors/Editor.Roo.GridPanel.bjs", "permname" : "", "modOrder" : "001", "strings" : { @@ -35,8 +35,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", @@ -67,8 +67,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[]", @@ -76,8 +76,8 @@ }, { "xtype" : "ColumnModel", - "header" : "Database Column", "width" : 150, + "header" : "Database Column", "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "cm[]", @@ -85,8 +85,8 @@ }, { "xtype" : "ColumnModel", - "width" : 100, "header" : "Type", + "width" : 100, "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "cm[]", @@ -94,8 +94,8 @@ }, { "xtype" : "ColumnModel", - "header" : "Title", "width" : 75, + "header" : "Title", "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "cm[]", @@ -117,8 +117,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