From 785fd2de92d9e055c54eccbf029c11d7b7f91a07 Mon Sep 17 00:00:00 2001 From: edward Date: Fri, 26 May 2017 17:40:50 +0800 Subject: [PATCH] old/Pman.Tab.AdminPermManager.bjs old/Pman.Tab.AdminPermManager.js --- old/Pman.Tab.AdminPermManager.bjs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/old/Pman.Tab.AdminPermManager.bjs b/old/Pman.Tab.AdminPermManager.bjs index 84a6925..e0ca339 100644 --- a/old/Pman.Tab.AdminPermManager.bjs +++ b/old/Pman.Tab.AdminPermManager.bjs @@ -30,23 +30,23 @@ "items" : [ { "xtype" : "LayoutRegion", - "tabPosition" : "top", "$ xns" : "Roo", + "tabPosition" : "top", "* prop" : "center" }, { "xtype" : "LayoutRegion", - "width" : 200, "$ xns" : "Roo", + "width" : 200, "* prop" : "west" }, { "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, @@ -59,8 +59,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", - "enableDrop" : true, "xtype" : "Grid", + "enableDrop" : true, "ddGroup" : "groupDD", "loadMask" : true, "$ xns" : "Roo.grid", @@ -79,8 +79,8 @@ "items" : [ { "$ url" : "baseURL + '/Roo/Groups.php'", - "method" : "GET", "xtype" : "HttpProxy", + "method" : "GET", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -160,8 +160,8 @@ }, { "xtype" : "ColumnModel", - "header" : "Name", "width" : 200, + "header" : "Name", "$ 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