updates and additions
[webos-internals:jeffrotulls-modifications.git] / top-bar / top-bar-show-wifi-ssid.patch
1 diff --git a/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js b/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
2 index 6d0a87a..a54b4c8 100644
3 --- a/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
4 +++ b/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
5 @@ -2475,17 +2475,20 @@ handleWIFINotifications: function(payload) {
6                         case 'associated': 
7                                 Mojo.Dom.get('wifi').className = 'connecting';                          
8                                 this.wifiState = payload.networkInfo.ssid;
9 +                               Mojo.Dom.get('carrier').innerHTML = this.wifiState;
10                                 break;
11                         case 'ipFailed':                        
12                         case 'notAssociated':
13                         case 'associationFailed':
14                                 this.wifiState = 'On';                          
15                                 this.wifiConnected = false;                             
16 +                               Mojo.Dom.get('carrier').innerHTML = this.carrierText;
17                                 Mojo.Dom.get('wifi').className = 'on';                  
18                                 break;
19                         case 'ipConfigured':
20                                 this.wifiConnected = true;
21                                 this.wifiState = payload.networkInfo.ssid;
22 +                               Mojo.Dom.get('carrier').innerHTML = this.wifiState;
23                                 if(payload.networkInfo.signalBars != undefined){
24                                         Mojo.Dom.get('wifi').className = 'bar-'+payload.networkInfo.signalBars;                                 
25                                 }                       
26 @@ -2504,6 +2507,7 @@ handleWIFINotifications: function(payload) {
27         }
28         else if (payload.status == 'serviceEnabled') {
29                 this.wifiConnected = false;
30 +               Mojo.Dom.get('carrier').innerHTML = this.carrierText;
31                 Mojo.Dom.get('wifi').className = 'on';
32                 this.wifiState = 'On';
33                 this.wifiRadio = true;
34 @@ -2516,6 +2520,7 @@ handleWIFINotifications: function(payload) {
35         }
36         else if (payload.status == 'serviceDisabled') {
37                 this.wifiConnected = false;
38 +               Mojo.Dom.get('carrier').innerHTML = this.carrierText;
39                 Mojo.Dom.get('wifi').className = 'off';
40                 this.wifiState = 'Off';
41                 this.wifiRadio = false;