Outstanding patches from Jason
[webos-internals:modifications.git] / top-bar / top-bar-palm-carrier-string.patch
1 Name: "Palm" Carrier String
2 Version: 1.3.5-1
3 Author: Jason Robitaille
4 Description: Custom carrier string of "Palm" for the launcher.  Note: also replaces "phone offline" message.  (MIT license)
5
6 --- .orig/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
7 +++ /usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
8 @@ -457,7 +457,7 @@
9                                 $('rssi').className = "flight-mode";
10                         }
11                         else {
12 -                               this.carrierText = $L("Phone offline");
13 +                               this.carrierText = "Palm";
14                                 $('carrier').innerHTML = this.carrierText;
15                         }                                                       
16                         $('roaming').hide();
17 @@ -480,7 +480,7 @@
18         this.phoneInLimitedService = false;     
19         switch (payload.extended.state) {
20                 case 'service': 
21 -                       this.carrierText = $L(payload.extended.networkName.escapeHTML());
22 +                       this.carrierText = "Palm";
23                         $('carrier').innerHTML = this.carrierText;              
24                         if(payload.extended.registration == 'home') {                   
25                                 $('roaming').hide();
26 @@ -808,7 +808,7 @@
27                                 this.updateAirplaneModeProgress('phone');
28                         }
29                         else {
30 -                               this.carrierText = $L("Phone offline");
31 +                               this.carrierText = "Palm";
32                                 $('carrier').innerHTML = this.carrierText;
33                         }
34                         $('datanet').className = 'off';
35 @@ -829,7 +829,7 @@
36                 switch(networkMsg.state) {
37                         case 'service':
38                                 this.phoneService = "service";
39 -                               this.carrierText = $L(networkMsg.networkName.escapeHTML());
40 +                               this.carrierText = "Palm";
41                                 $('carrier').innerHTML = this.carrierText;
42                                 this.simlocked = false;
43