16 Updated patches.
[webos-internals:shivaramv-modifications.git] / contacts / contacts-additional-contact-labels.patch
1 diff --git a/usr/palm/applications/com.palm.app.contacts/app/models/phonenumber-model.js b/usr/palm/applications/com.palm.app.contacts/app/models/phonenumber-model.js
2 index 68dd4c9..85ba814 100644
3 --- a/usr/palm/applications/com.palm.app.contacts/app/models/phonenumber-model.js
4 +++ b/usr/palm/applications/com.palm.app.contacts/app/models/phonenumber-model.js
5 @@ -52,6 +52,13 @@ PhoneNumber.MOBILE = 3;
6  PhoneNumber.PAGER = 4;
7  PhoneNumber.PERSONAL_FAX = 5;
8  PhoneNumber.FAX = 6;
9 +PhoneNumber.WORK_1 = 7;
10 +PhoneNumber.HOME_2 = 8;
11 +PhoneNumber.MOBILE_2 = 9;
12 +PhoneNumber.OFFICE = 10;
13 +PhoneNumber.OFFICE_2 = 11;
14 +PhoneNumber.FAX_2 = 12;
15 +PhoneNumber.DIRECT = 13;
16  
17  PhoneNumber.popupLabels = [{
18      value: 3,
19 @@ -73,6 +80,26 @@ PhoneNumber.popupLabels = [{
20      value: 2,
21      label: $L("Other"),
22      command: 2
23 +}, {
24 +    value: 10,
25 +    label: $L("Office"),
26 +    command: 10
27 +}, {
28 +    value: 9,
29 +    label: $L("Mobile 2"),
30 +    command: 9
31 +}, {
32 +    value: 13,
33 +    label: $L("Direct"),
34 +    command: 13
35 +}, {
36 +    value: 12,
37 +    label: $L("Fax 2"),
38 +    command: 12
39 +}, {
40 +    value: 4,
41 +    label: $L("Pager"),
42 +    command: 4
43  }];
44  
45  PhoneNumber.labels = {
46 @@ -81,7 +108,14 @@ PhoneNumber.labels = {
47      1: $L('Work'),
48      7: $L('Main'),
49      6: $L('Fax'),
50 -    5: $L('Fax'),
51 +    5: $L('Per Fax'),
52      4: $L('Pager'),
53 -    2: $L('Other')
54 +    2: $L('Other'),
55 +    8: $L('Home 2'),
56 +    9: $L('Mobile 2'),
57 +   10: $L('Office'),
58 +   11: $L('Office 2'),
59 +   12: $L('Fax 2'),    
60 +   13: $L('Direct')
61 +
62  };