updates and additions
[webos-internals:imagineer1981s-modifications.git] / phone / phone-no-autodial-from-call-log.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..014a5e6 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 @@ -311,7 +311,8 @@ var CalllogAssistant = Class.create({
6                                         if ( isSMS ) {
7                                                 TelephonyCommands.messagingLaunch(target.getAttribute('addr'), target.getAttribute('service'), itemModel.recentcall_address.personId);
8                                         } else {
9 -                                               this.appAssistant.launchDial(new CallSynergyContact(target.getAttribute('addr'), target.getAttribute('service'), itemModel.recentcall_address.personId));
10 +                                               //this.appAssistant.launchDial(new CallSynergyContact(target.getAttribute('addr'), target.getAttribute('service'), itemModel.recentcall_address.personId));
11 +                                               UIStateMachine.enter('dialpad_card',{"action": "fill", "number": TelephonyCommands.normalizeNumber(target.getAttribute('addr'))}, false, true);
12                                         }
13                                         return;
14                                         
15 @@ -529,7 +530,8 @@ var CalllogAssistant = Class.create({
16                 }
17                 // CASE: make call
18                 else if ( CallSynergyContact.canBeCalled(model.recentcall_address.service, model.recentcall_address.addr) ) {
19 -                       this.appAssistant.launchDial(new CallSynergyContact(model.recentcall_address.addr, model.recentcall_address.service, model.recentcall_address.personId, undefined, true));
20 +                       //this.appAssistant.launchDial(new CallSynergyContact(model.recentcall_address.addr, model.recentcall_address.service, model.recentcall_address.personId, undefined, true));
21 +                       UIStateMachine.enter('dialpad_card',{"action": "fill", "number": TelephonyCommands.normalizeNumber(model.recentcall_address.addr)}, false, true);
22                 }
23      }
24  });
25 \ No newline at end of file