1 //<script type="text/javascript">
3 * group membershipg - for permissions..
7 Pman.on('beforeload', function()
9 // case 1 : Pman.Tab.Projects.add(this.mainLayout, 'west'); break;
14 modKey : '001-pman-tab-groups-members',
15 module : Pman.Tab.Group_Members,
17 parent : Pman.Tab.GroupMgr,
18 name : "Permission Group Membership"
24 Pman.Tab.Group_Members = new Pman.Tab.PersonList({
27 title : "Staff Membership",
28 permName : 'Core.Staff',
29 hideDelete: true, // as it's confusing..
30 getLeftSelections : function() {
31 return Pman.Tab.Groups.grid.getSelectionModel().getSelections();
34 // beforeload handler... -- override on extended versions..
35 beforeload: function(t, o) {
36 //console.log(o.params);
38 var tms = this.getLeftSelections();
41 o.params['query[in_group]'] = tms[0].data.id;
43 o.params['query[name]'] = this.searchBox.getValue();
44 o.params['query[type]'] = this.type; // group type..
45 o.params['query[person_internal_only_all]'] = 1;
46 o.params['query[person_inactive]'] = this.showInActive ? 0 : 1;
54 this.c_office_id_name(),
64 return Pman.Dialog.PersonStaff;
66 bulkAdd : function() {
67 //return Pman.Dialog.PersonBulkAdd
70 newDefaults : function() {
74 company_id : Pman.Login.authUser.company_id,
75 company_id_name : Pman.Login.authUser.company_id_name,
76 company_id_address : Pman.Login.authUser.company_id_address,
77 company_id_tel : Pman.Login.authUser.company_id_tel,
78 company_id_fax : Pman.Login.authUser.company_id_fax