Refreshed against 1.1
[webos-internals:adamrmcd-modifications.git] / phone / phone-enable-roam-only.patch
1 phone-enable-roam-only
2
3 Tested-On: 1.1
4
5 Index: /usr/palm/applications/com.palm.app.phoneprefs/app/controllers/preflist-assistant.js
6 ===================================================================
7 --- .orig/usr/palm/applications/com.palm.app.phoneprefs/app/controllers/preflist-assistant.js
8 +++ /usr/palm/applications/com.palm.app.phoneprefs/app/controllers/preflist-assistant.js
9 @@ -223,7 +223,8 @@ var PreflistAssistant = Class.create({
10                 
11                 this.voiceRoamingChoices =  [
12                         {label: this.carrierOnlyLabel,value: "homeonly"},
13 -                       {label : $L("Automatic"),value: "any"}
14 +                       {label : $L("Automatic"),value: "any"},
15 +                       {label : "Roam Only",value: "roamonly"}
16                 ],
17         
18                 this.voiceRoamingModel = {
19 @@ -1220,6 +1221,11 @@ voiceNumberSetDone: function(payload){
20                         $('dataroamingrow').show();
21                         $('voiceRoamingRow').removeClassName('last');
22                 }
23 +               else if(payload.extended.mode == 'roamonly') {
24 +                       this.voiceRoamingModel.currentVoiceRoaming = "roamonly";
25 +                       $('dataroamingrow').show();
26 +                       $('voiceRoamingRow').removeClassName('last');
27 +               }
28                 else {
29                         this.voiceRoamingModel.currentVoiceRoaming = "homeonly";
30                         $('dataroamingrow').hide();