From 3bf4454ec0549e14f094eb6b82fe60efa4de2773 Mon Sep 17 00:00:00 2001 From: john Date: Tue, 18 Jul 2017 11:52:42 +0800 Subject: [PATCH] Pman.Tab.AdminOffice.bjs Pman.Tab.AdminOffice.js --- Pman.Tab.AdminOffice.bjs | 14 +++++++------- Pman.Tab.AdminOffice.js | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Pman.Tab.AdminOffice.bjs b/Pman.Tab.AdminOffice.bjs index d87cd46..bffa6d3 100644 --- a/Pman.Tab.AdminOffice.bjs +++ b/Pman.Tab.AdminOffice.bjs @@ -2,7 +2,7 @@ "name" : "Pman.Tab.AdminOffice", "parent" : "Pman.Tab.AdminCompanies", "title" : "Pman.Tab.AdminOffice", - "path" : "/home/alan/gitlive/Pman.Admin/Pman.Tab.AdminOffice.bjs", + "path" : "/home/johns/gitlive/web.coba/Pman.Admin/Pman.Tab.AdminOffice.bjs", "permname" : "", "modOrder" : "001", "strings" : { @@ -23,9 +23,9 @@ "listeners" : { "|activate" : "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}" }, + "fitToframe" : true, "background" : true, "region" : "south", - "fitToframe" : true, "title" : "Offices / Departments / Sub-Companies", "xtype" : "GridPanel", "fitContainer" : true, @@ -55,8 +55,8 @@ "items" : [ { "$ url" : "baseURL + '/Roo/Office.php'", - "method" : "GET", "xtype" : "HttpProxy", + "method" : "GET", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -129,8 +129,8 @@ }, { "xtype" : "ColumnModel", - "header" : "Phone", "width" : 100, + "header" : "Phone", "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "colModel[]", @@ -138,8 +138,8 @@ }, { "xtype" : "ColumnModel", - "header" : "Fax", "width" : 100, + "header" : "Fax", "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "colModel[]", @@ -147,8 +147,8 @@ }, { "xtype" : "ColumnModel", - "header" : "Email", "width" : 200, + "header" : "Email", "$ renderer" : "function (v) {\n return (v.length && v.indexOf('@') > 0 ) ? \n String.format('{0}',v) : v;\n \n}", "$ xns" : "Roo.grid", "* prop" : "colModel[]", @@ -156,8 +156,8 @@ }, { "xtype" : "ColumnModel", - "header" : "Address", "width" : 300, + "header" : "Address", "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "colModel[]", diff --git a/Pman.Tab.AdminOffice.js b/Pman.Tab.AdminOffice.js index 644d452..86cd5d9 100644 --- a/Pman.Tab.AdminOffice.js +++ b/Pman.Tab.AdminOffice.js @@ -27,7 +27,7 @@ Pman.Tab.AdminOffice = new Roo.XComponent({ name : "Pman.Tab.AdminOffice", disabled : false, permname : '', - _tree : function() + _tree : function(_data) { var _this = this; var MODULE = this; -- 2.39.2