1 //<script type="text/javascript">
4 // left - list of groups.
8 Pman.on('beforeload', function()
11 if (!Pman.hasPerm('Core.Person', 'E')) {
14 // anyone with admin can see this.....
17 modKey : '060-pman-tab-contactsmgr',
18 module : Pman.Tab.ContactsMgr,
20 parent : Pman.Tab.Admin,
21 name : "Contacts Manager",
22 permname : 'Admin.Contacts',
28 Pman.Tab.ContactsMgr = {
32 add : function(parentLayout, region) {
36 parentLayout.getRegion(region).showPanel(this.panel);
41 this.layout = new Ext.BorderLayout(
42 parentLayout.getEl().createChild({tag:'div'}),
63 this.tab = parentLayout.add(region, new Ext.NestedLayoutPanel(
64 this.layout, {title: this.title || "Contacts Manager", background : true}));
66 this.tab.on('activate', function() {
67 if (_this.layout.getRegion('west').panels.length) {
68 _this.layout.getRegion('west').showPanel(0);
69 Pman.Tab.ContactGrps.refresh();
71 Pman.Tab.Contacts.loadFirst();
73 _this.layout.getRegion('center').showPanel(0);
81 donelayout : false //,
83 //show: function (parentLayout, region)
85 // this.add(parentLayout, region);