1 //<script type="text/javascript">
4 // left - list of groups.
5 // right - Permissions | Members..
6 Pman.on('beforeload', function()
11 part : ["Admin","StaffManager"],
12 modKey : '020-pman-tab-staffmgr',
13 module : Pman.Tab.StaffMgr,
15 parent : Pman.Tab.Admin,
16 name : "Staff Manager",
17 permname : 'Admin.Teams',
18 finalize : function() {
20 var _this = Pman.Tab.StaffMgr;
25 _this.layout.endUpdate();
36 add : function(parentLayout, region) {
38 Roo.log('StaffMgr add called!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
42 parentLayout.getRegion(region).showPanel(this.panel);
47 this.layout = new Ext.BorderLayout(
48 parentLayout.getEl().createChild({tag:'div'}),
67 Roo.log(parentLayout);
71 this.tab = parentLayout.add(region, new Ext.NestedLayoutPanel(
72 this.layout, {title: this.title || "Staff / Teams", background: true}));
74 this.tab.on('activate', function() {
75 Roo.log('activate called!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1');
76 _this.layout.getRegion('center').showPanel(0);
78 if (_this.layout.getRegion('west').panels.length) {
79 Roo.log('west panel??? called!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1');
80 _this.layout.getRegion('west').showPanel(0); // forces a refresh..
81 Pman.Tab.Teams.refresh();
82 // Pman.Tab.Teams.refresh();
84 Roo.log('no west panelk?????');
85 Pman.Tab.PersonStaff.loadFirst();
91 this.layout.beginUpdate();