updates and additions
[webos-internals:modifications.git] / phone / phone-annuaire-inverse.patch
1 diff --git a/usr/palm/applications/com.palm.app.phone/app/controllers/calllog-assistant.js b/usr/palm/applications/com.palm.app.phone/app/controllers/calllog-assistant.js
2 index a7d2920..2529a74 100644
3 --- a/usr/palm/applications/com.palm.app.phone/app/controllers/calllog-assistant.js
4 +++ b/usr/palm/applications/com.palm.app.phone/app/controllers/calllog-assistant.js
5 @@ -213,6 +213,8 @@ var CalllogAssistant = Class.create({
6                                 name: "contact",
7                                 label: isKnown ? $L("View Contact") : $L("Add to Contacts")
8                         }});
9 +                       
10 +                       viewContact += '<div class="palm-row" x-mojo-touch-feedback="momentary" name="wplookup" displayName="asd"><div class="palm-row-wrapper"><div class="title contact-title truncating-text">Annuaire inversé...</div></div></div>';
11                 } else {
12                         viewContact = "";
13                 }
14 @@ -322,6 +324,45 @@ var CalllogAssistant = Class.create({
15                                                 TelephonyCommands.contactsLaunchWithPseudocard(itemModel.recentcall_address.addr, itemModel.recentcall_address.service);
16                                         }
17                                         return;
18 +                               
19 +                               case "wplookup":
20 +
21 +
22 +                                       this.controller.serviceRequest('palm://com.palm.applicationManager', {
23 +                                               method: 'open',
24 +                                               parameters: {
25 +                                                       id: "com.palm.app.browser",
26 +                                                       params:{target: "http://www.118000.fr/search?sb_Phone=" + itemModel.recentcall_address.addr.replace("+33", "0")}
27 +                                               },
28 +
29 +
30 +
31 +
32 +
33 +
34 +
35 +
36 +
37 +
38 +
39 +
40 +
41 +
42 +
43 +
44 +
45 +
46 +
47 +
48 +
49 +
50 +
51 +
52 +
53 +                                       });
54 +                                       return;
55 +                                       
56 +                                       
57                                 }
58                         target = target.parentNode;
59                 }