X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Pman.Tab.AdminContacts.bjs;h=b479ed4124dbf81f47c78f1630dff797d0249bee;hb=ed40065bdfee3bf2245028687bb3d0ad7398ff2e;hp=1c947d4aa2c0cc5080b1c1d115e6e21a0aed0cb7;hpb=879a52450f9901598e1bb18bdd718587a2fc54a9;p=Pman.Admin diff --git a/Pman.Tab.AdminContacts.bjs b/Pman.Tab.AdminContacts.bjs index 1c947d4..b479ed4 100644 --- a/Pman.Tab.AdminContacts.bjs +++ b/Pman.Tab.AdminContacts.bjs @@ -54,8 +54,8 @@ { "listeners" : { "|rowdblclick" : "function (_self, rowIndex, e)\n{\n if (!_this.dialog) {\n return;\n }\n _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {\n _this.grid.footer.onClick('first');\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 ? 0 : 1);\n rec.commit();\n \n \n}", - "|render" : "function() \n{\n _this.grid = this; \n if (!_this.dialog) {\n _this.dialog = Pman.Dialog.PersonEdit;\n \n }\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 if (!_this.dialog) {\n _this.dialog = Pman.Dialog.PersonEdit;\n \n }\n //_this.dialog = Pman.Dialog.FILL_IN\n if (_this.panel.active) {\n this.footer.onClick('first');\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 ? 0 : 1);\n rec.commit();\n \n \n}" }, "autoExpandColumn" : "name", "xtype" : "Grid", @@ -78,8 +78,8 @@ "items" : [ { "$ url" : "baseURL + '/Roo/core_person'", - "method" : "GET", "xtype" : "HttpProxy", + "method" : "GET", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -166,8 +166,8 @@ "items" : [ { "$ url" : "baseURL + '/Roo/core_company'", - "method" : "GET", "xtype" : "HttpProxy", + "method" : "GET", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -319,8 +319,8 @@ }, { "xtype" : "ColumnModel", - "header" : "Role", "width" : 100, + "header" : "Role", "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "colModel[]", @@ -328,8 +328,8 @@ }, { "xtype" : "ColumnModel", - "header" : "Phone", "width" : 100, + "header" : "Phone", "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "colModel[]", @@ -342,6 +342,7 @@ "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "colModel[]", + "Boolean hidden" : true, "dataIndex" : "fax" }, { @@ -356,8 +357,8 @@ }, { "xtype" : "ColumnModel", - "header" : "Active", "width" : 75, + "header" : "Active", "$ renderer" : "function(v) { \n var state = v> 0 ? '-checked' : '';\n\n return '';\n \n }", "$ xns" : "Roo.grid", "* prop" : "colModel[]",