From 74b8c8d638575528ad3701ca0b885414c6e7c376 Mon Sep 17 00:00:00 2001 From: edward Date: Mon, 18 Jul 2016 15:06:11 +0800 Subject: [PATCH] Pman.Tab.AdminContactsGroup.bjs Pman.Tab.AdminContactsGroup.js --- Pman.Tab.AdminContactsGroup.bjs | 16 ++++++++-------- Pman.Tab.AdminContactsGroup.js | 6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Pman.Tab.AdminContactsGroup.bjs b/Pman.Tab.AdminContactsGroup.bjs index 0f11a72..1dc23cc 100644 --- a/Pman.Tab.AdminContactsGroup.bjs +++ b/Pman.Tab.AdminContactsGroup.bjs @@ -2,26 +2,26 @@ "name" : "Pman.Tab.AdminContactsGroup", "parent" : "Pman.Tab.AdminContactsManager", "title" : "Pman.Tab.AdminContactsGroup", - "path" : "/home/alan/gitlive/Pman.Admin/Pman.Tab.AdminContactsGroup.bjs", + "path" : "/home/edward/gitlive/Pman.Admin/Pman.Tab.AdminContactsGroup.bjs", "permname" : "", "modOrder" : "001", "strings" : { "ec211f7c20af43e742bf2570c3cb84f9" : "Add", "a37ede293936e29279ed543129451ec3" : "Groups", "7dce122004969d56ae2e0245cb754d35" : "Edit", + "b645495692a2048578f4dc6620bcb833" : "Manage Groups ?", "4d1c8263ba1036754f8db14a98f9f006" : "Reload", "f2a6c498fb90ee345d997f888fce3b18" : "Delete", - "49ee3087348e8d44e1feda1917443987" : "Name", - "aba9f7d7443652e858969bfc280690b1" : "Manage Groups" + "49ee3087348e8d44e1feda1917443987" : "Name" }, "items" : [ { "listeners" : { "|activate" : "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.ds.load({});\n }\n}" }, + "background" : true, "region" : "west", "fitToframe" : true, - "background" : true, "title" : "Groups", "xtype" : "GridPanel", "fitContainer" : true, @@ -34,8 +34,8 @@ "|render" : "function() \n{\n _this.grid = this; \n _this.dialog = Pman.Dialog.Groups;\n if (_this.panel.active) {\n _this.grid.ds.load({});\n }\n}" }, "autoExpandColumn" : "name", - "xtype" : "Grid", "enableDrop" : true, + "xtype" : "Grid", "ddGroup" : "groupDD", "loadMask" : true, "$ xns" : "Roo.grid", @@ -54,8 +54,8 @@ "items" : [ { "$ url" : "baseURL + '/Roo/Groups.php'", - "xtype" : "HttpProxy", "method" : "GET", + "xtype" : "HttpProxy", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -76,7 +76,7 @@ "* prop" : "toolbar", "items" : [ { - "text" : "Manage Groups", + "text" : "Manage Groups ?", "xtype" : "Button", "$ xns" : "Roo.Toolbar", "items" : [ @@ -135,8 +135,8 @@ }, { "xtype" : "ColumnModel", - "width" : 200, "header" : "Name", + "width" : 200, "$ renderer" : "function(v,x,r) { \n if (r.data.id == -1) {\n return '' + \"Not in a Group\" + '';\n }\n if ((r.data.id == 0) && (_this.type == 0)) {\n return '' + \"All Staff (Default Permissions)\" + '';\n }\n if ((r.data.id == 0) && (_this.type == 2)) {\n return '' + \"Everybody\" + '';\n }\n if (r.data.id == 0) {\n return '' + \"All Staff\" + '';\n }\n if (v == 'Administrators') {\n return '' + \"Adminstrators\" + '';\n }\n if (r.data.leader) {\n return v + ' (' + r.data.leader_name + ')';\n }\n \n return v;\n}", "$ xns" : "Roo.grid", "* prop" : "colModel[]", diff --git a/Pman.Tab.AdminContactsGroup.js b/Pman.Tab.AdminContactsGroup.js index d92291d..9521cdf 100644 --- a/Pman.Tab.AdminContactsGroup.js +++ b/Pman.Tab.AdminContactsGroup.js @@ -10,10 +10,10 @@ Pman.Tab.AdminContactsGroup = new Roo.XComponent({ 'ec211f7c20af43e742bf2570c3cb84f9' :"Add", 'a37ede293936e29279ed543129451ec3' :"Groups", '7dce122004969d56ae2e0245cb754d35' :"Edit", + 'b645495692a2048578f4dc6620bcb833' :"Manage Groups ?", '4d1c8263ba1036754f8db14a98f9f006' :"Reload", 'f2a6c498fb90ee345d997f888fce3b18' :"Delete", - '49ee3087348e8d44e1feda1917443987' :"Name", - 'aba9f7d7443652e858969bfc280690b1' :"Manage Groups" + '49ee3087348e8d44e1feda1917443987' :"Name" }, part : ["Admin", "ContactsGroup" ], @@ -82,7 +82,7 @@ Pman.Tab.AdminContactsGroup = new Roo.XComponent({ xtype : 'Toolbar', items : [ { - text : _this._strings['aba9f7d7443652e858969bfc280690b1'] /* Manage Groups */, + text : _this._strings['b645495692a2048578f4dc6620bcb833'] /* Manage Groups ? */, xns : Roo.Toolbar, '|xns' : 'Roo.Toolbar', xtype : 'Button', -- 2.39.2