updates and additions
[webos-internals:imagineer1981s-modifications.git] / calendar / calendar-bridge-call-dialer-launcher.patch
1 diff --git a/usr/palm/applications/com.palm.app.calendar/app/controllers/edit-assistant.js b/usr/palm/applications/com.palm.app.calendar/app/controllers/edit-assistant.js
2 index 7b4c244..f3e2652 100644
3 --- a/usr/palm/applications/com.palm.app.calendar/app/controllers/edit-assistant.js
4 +++ b/usr/palm/applications/com.palm.app.calendar/app/controllers/edit-assistant.js
5 @@ -15,6 +15,7 @@ var EditAssistant = Class.create({
6                                                                                                                                 {label:$L('Get Directions'), command:'direction', disabled:false}] 
7                                                         },
8                                                         {label:$L('Delete event'), command:'deleteEvent', disabled:false},
9 +                                                       {label:$L('Bridge Call Dialer'), command:'bridgeCallDialer', disabled:false},
10                                                         {label:$L('Preferences & Accounts'), command:Mojo.Menu.prefsCmd, disabled: true},
11                                                         {label:$L('Help'), command:Mojo.Menu.helpCmd, disabled:false}]
12                                   },
13 @@ -828,6 +829,19 @@ var EditAssistant = Class.create({
14                                 this.handleSave(event);
15                         }                                                       
16                 }
17 +               if (event.type == Mojo.Event.command && event.command == 'bridgeCallDialer') {
18 +                                       this.controller.serviceRequest("palm://com.palm.applicationManager", {
19 +                                               method: 'launch',
20 +                                               parameters: {
21 +                                                       id: "com.ahub.bridgecalldialer",
22 +                                                       params: {
23 +                                                               subject: this.targetEvent.subject,
24 +                                                               location: this.targetEvent.location,
25 +                                                               note: this.targetEvent.note
26 +                                                       }
27 +                                               }
28 +                                       });
29 +               }               
30         },
31         
32         noteChanged: function(e) {