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"
27 Pman.Tab.ContactsMgr = {
31 add : function(parentLayout, region) {
35 parentLayout.getRegion(region).showPanel(this.panel);
40 this.layout = new Ext.BorderLayout(
41 parentLayout.getEl().createChild({tag:'div'}),
62 this.tab = parentLayout.add(region, new Ext.NestedLayoutPanel(
63 this.layout, {title: this.title || "Contacts Manager", background : true}));
65 this.tab.on('activate', function() {
66 if (_this.layout.getRegion('west').panels.length) {
67 _this.layout.getRegion('west').showPanel(0);
68 Pman.Tab.ContactGrps.refresh();
70 Pman.Tab.Contacts.loadFirst();
72 _this.layout.getRegion('center').showPanel(0);
80 donelayout : false //,
82 //show: function (parentLayout, region)
84 // this.add(parentLayout, region);