1 //<script type="text/javascript">
4 // left - list of groups.
5 // right - Permissions | Members..
6 Pman.on('beforeload', function()
8 // case 1 : Pman.Tab.Projects.add(this.mainLayout, 'west'); break;
10 if (!Pman.hasPerm('Core.Staff', 'E')) {
14 modKey : '020-pman-tab-staffmgr',
15 module : Pman.Tab.StaffMgr,
17 parent : Pman.Tab.Admin,
18 name : "Staff Manager",
19 finalize : function() {
21 var _this = Pman.Tab.StaffMgr;
26 _this.layout.endUpdate();
37 add : function(parentLayout, region) {
40 parentLayout.getRegion(region).showPanel(this.panel);
45 this.layout = new Ext.BorderLayout(
46 parentLayout.getEl().createChild({tag:'div'}),
67 this.tab = parentLayout.add(region, new Ext.NestedLayoutPanel(
68 this.layout, {title: this.title || "Staff / Teams", background: true}));
70 this.tab.on('activate', function() {
71 _this.layout.getRegion('center').showPanel(0);
73 if (_this.layout.getRegion('west').panels.length) {
74 _this.layout.getRegion('west').showPanel(0); // forces a refresh..
75 Pman.Tab.Teams.refresh();
76 // Pman.Tab.Teams.refresh();
78 Pman.Tab.PersonStaff.loadFirst();
84 this.layout.beginUpdate();