PHP7 fix
[Pman.Core] / Pman.Dialog.PersonNew.js
1 //<script type="text/javascript">
2 // for needed for new person in External contacts...
3
4
5
6 // needs adding to init!!!!
7 Pman.on('beforeload', function() {
8      // new - company/office pulldowns.
9      // used by pman
10     Pman.Dialog.PersonNew = new Pman.Dialog.PersonEditor({
11         type : 'new',
12         dialogConfig : {
13             title: "New Contact Details",
14             height: 400 // slightly taller..
15         },
16         itemList : [
17             'company_id_name',
18             'office_id_name',
19             'name','role', 'phone', 'fax', 'email',
20             'project_id_fs',
21             'id',  
22             'company_id_email',
23             'company_id_address','company_id_tel','company_id_fax', 
24             'project_id_addto' // hidden..
25             
26         ]
27     });
28 });