From: Alan Knowles Date: Tue, 28 Mar 2017 08:43:38 +0000 (+0800) Subject: Pman.Tab.AdminContacts.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=commitdiff_plain;h=13e9fc9cf6c7aa3b77af89ab1bd33ba277b83747 Pman.Tab.AdminContacts.bjs Pman.Tab.AdminContacts.js --- diff --git a/Pman.Tab.AdminContacts.bjs b/Pman.Tab.AdminContacts.bjs index 0bfc2dc..93f34e0 100644 --- a/Pman.Tab.AdminContacts.bjs +++ b/Pman.Tab.AdminContacts.bjs @@ -2,7 +2,7 @@ "name" : "Pman.Tab.AdminContacts", "parent" : "Pman.Tab.AdminContactsManager", "title" : "Pman.Tab.AdminContacts", - "path" : "/home/edward/gitlive/Pman.Admin/Pman.Tab.AdminContacts.bjs", + "path" : "/home/alan/gitlive/Pman.Admin/Pman.Tab.AdminContacts.bjs", "permname" : "Core.Person", "modOrder" : "001", "strings" : { @@ -49,8 +49,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", - "|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}" + "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}" }, "autoExpandColumn" : "name", "xtype" : "Grid", @@ -73,8 +73,8 @@ "items" : [ { "$ url" : "baseURL + '/Roo/Person.php'", - "xtype" : "HttpProxy", "method" : "GET", + "xtype" : "HttpProxy", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -160,9 +160,9 @@ "* prop" : "store", "items" : [ { - "$ url" : "baseURL + '/Roo/Companies.php'", - "xtype" : "HttpProxy", + "$ url" : "baseURL + '/Roo/core_company'", "method" : "GET", + "xtype" : "HttpProxy", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -314,8 +314,8 @@ }, { "xtype" : "ColumnModel", - "width" : 100, "header" : "Role", + "width" : 100, "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "colModel[]", @@ -323,8 +323,8 @@ }, { "xtype" : "ColumnModel", - "width" : 100, "header" : "Phone", + "width" : 100, "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "colModel[]", @@ -332,8 +332,8 @@ }, { "xtype" : "ColumnModel", - "width" : 100, "header" : "Fax", + "width" : 100, "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "colModel[]", @@ -351,8 +351,8 @@ }, { "xtype" : "ColumnModel", - "width" : 75, "header" : "Active", + "width" : 75, "$ renderer" : "function(v) { \n var state = v> 0 ? '-checked' : '';\n\n return '';\n \n }", "$ xns" : "Roo.grid", "* prop" : "colModel[]", diff --git a/Pman.Tab.AdminContacts.js b/Pman.Tab.AdminContacts.js index e027592..235d884 100644 --- a/Pman.Tab.AdminContacts.js +++ b/Pman.Tab.AdminContacts.js @@ -208,7 +208,7 @@ Pman.Tab.AdminContacts = new Roo.XComponent({ proxy : { xtype : 'HttpProxy', method : 'GET', - url : baseURL + '/Roo/Companies.php', + url : baseURL + '/Roo/core_company', xns : Roo.data, '|xns' : 'Roo.data' },