1 //<script type="text/javascript">
6 * -- this should implement personlist.!!!!
8 Pman.on('beforeload', function()
10 if (!Pman.hasPerm('Core.Person', 'E')) {
17 modKey : '040-pman-tab-contacts',
18 module : Pman.Tab.Contacts,
20 parent : Pman.Tab.ContactsMgr,
21 name : "Contacts List"
26 Pman.Tab.Contacts = new Pman.Tab.PersonList({
30 itemDisplayName : "Contact",
31 permName : 'Core.Person',
32 getLeftSelections : function() {
34 return Pman.Tab.ContactGrps.grid ?
35 Pman.Tab.ContactGrps.grid.getSelectionModel().getSelections() : [];
37 beforeload: function(t, o) {
38 //console.log(o.params);
39 var _this= Pman.Tab.Contacts;
40 o.params['query[person_not_internal]'] = 1;
41 o.params['query[search]'] = _this.searchBox.getValue();
43 var tms = _this.getLeftSelections();
46 o.params['query[in_group]'] = tms[0].data.id;
48 //o.params['query[name]'] = _this.searchBox.getValue();
49 o.params['query[type]'] = _this.type; // group type..
57 this.c_project_id_code(),
58 this.c_company_id_name(),
67 return Pman.Dialog.PersonEdit;
69 bulkAdd : function() {
70 return Pman.Dialog.PersonBulkAdd;
72 newDefaults : function() { return { id : 0 }; }