updates and additions
[webos-internals:jeffrotulls-modifications.git] / top-bar / top-bar-no-vpn.patch
1 diff --git a/usr/lib/luna/system/luna-systemui/app/controllers/devicemenu-assistant.js b/usr/lib/luna/system/luna-systemui/app/controllers/devicemenu-assistant.js
2 index 5beb152..b676fb5 100644
3 --- a/usr/lib/luna/system/luna-systemui/app/controllers/devicemenu-assistant.js
4 +++ b/usr/lib/luna/system/luna-systemui/app/controllers/devicemenu-assistant.js
5 @@ -147,6 +147,12 @@ var DevicemenuAssistant = Foundations.Class.create({
6                                 setText: this.altCharSelected.bind(this)
7                         };
8                 }
9 +               this.controller.get("dm_vpn").style.display = "none";
10 +               var elem = this.controller.get("dm_vpn").previousSibling;
11 +               while(elem.innerHTML==null || elem.className.indexOf("palm-section-divider")<0)
12 +                       elem = elem.previousSibling;
13 +               elem.style.display = "none";
14 +               this.controller.get("vpndetails").style.display = "none";
15         },
16         
17         activate: function() {
18 @@ -1048,7 +1054,7 @@ var DevicemenuAssistant = Foundations.Class.create({
19         },
20         
21         showVPN:function(available) {
22 -               if(available) {
23 +               if(false) {
24                         this.controller.get('dm_vpn').show();
25                         this.controller.showWidgetContainer(this.controller.get('dm_vpn'));
26                 }