From 3ed00b1947a9c092437b28228f3fe454c7da3c52 Mon Sep 17 00:00:00 2001 From: benny Date: Thu, 6 Sep 2018 12:04:45 +0800 Subject: [PATCH] Pman.Tab.AdminContactsGroup.bjs Pman.Tab.AdminContactsGroup.js --- Pman.Tab.AdminContactsGroup.bjs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Pman.Tab.AdminContactsGroup.bjs b/Pman.Tab.AdminContactsGroup.bjs index f121d1b..825387c 100644 --- a/Pman.Tab.AdminContactsGroup.bjs +++ b/Pman.Tab.AdminContactsGroup.bjs @@ -2,7 +2,7 @@ "name" : "Pman.Tab.AdminContactsGroup", "parent" : "Pman.Tab.AdminContactsManager", "title" : "Pman.Tab.AdminContactsGroup", - "path" : "/home/benny/gitlive/Pman.Admin/Pman.Tab.AdminContactsGroup.bjs", + "path" : "/home/benny/gitlive/web.hhyc_membership_system/Pman.Admin/Pman.Tab.AdminContactsGroup.bjs", "permname" : "", "modOrder" : "001", "strings" : { @@ -19,9 +19,9 @@ "listeners" : { "|activate" : "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.ds.load({});\n }\n}" }, + "fitToframe" : true, "background" : true, "region" : "west", - "fitToframe" : 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/core_group'", - "xtype" : "HttpProxy", "method" : "GET", + "xtype" : "HttpProxy", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -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[]", -- 2.39.2