1 //<script type="text/javascript">
4 // left - list of groups.
5 // right - Permissions | Members..
6 Pman.on('beforeload', function()
11 modKey : '020-pman-tab-staffmgr',
12 module : Pman.Tab.StaffMgr,
14 parent : Pman.Tab.Admin,
15 name : "Staff Manager",
16 permname : 'Admin.Teams'
17 finalize : function() {
19 var _this = Pman.Tab.StaffMgr;
24 _this.layout.endUpdate();
35 add : function(parentLayout, region) {
38 parentLayout.getRegion(region).showPanel(this.panel);
43 this.layout = new Ext.BorderLayout(
44 parentLayout.getEl().createChild({tag:'div'}),
65 this.tab = parentLayout.add(region, new Ext.NestedLayoutPanel(
66 this.layout, {title: this.title || "Staff / Teams", background: true}));
68 this.tab.on('activate', function() {
69 _this.layout.getRegion('center').showPanel(0);
71 if (_this.layout.getRegion('west').panels.length) {
72 _this.layout.getRegion('west').showPanel(0); // forces a refresh..
73 Pman.Tab.Teams.refresh();
74 // Pman.Tab.Teams.refresh();
76 Pman.Tab.PersonStaff.loadFirst();
82 this.layout.beginUpdate();