Outstanding patches from Jason
[webos-internals:justyns-modifications.git] / top-bar / top-bar-no-airplane-mode.patch
1 Name: No Airplane Mode in Device Menu
2 Version: 1.3.1-1
3 Author: Jason Robitaille
4 Description: Removes the airplane mode toggle from the device menu  (MIT license)
5
6 --- .orig/usr/lib/luna/system/luna-systemui/app/controllers/devicemenu-assistant.js
7 +++ /usr/lib/luna/system/luna-systemui/app/controllers/devicemenu-assistant.js
8 @@ -64,10 +64,7 @@
9                 //Spinner for Airplande Mode
10                 //this.controller.setupWidget('apSpinner', this.spinnerAttrs, this.apSpinnerModel);             
11                         
12 -               if(this.barAssistant.getAirplaneMode())                         
13 -                       this.controller.get('dm_airplanemode_status').innerHTML = $L('Turn off Airplane Mode');
14 -               else
15 -                       this.controller.get('dm_airplanemode_status').innerHTML = $L('Turn on Airplane Mode');
16 +               this.controller.get('dm_airplanemode').style.display="none";
17                         
18                 var btstate = this.barAssistant.getCurrentBluetoothState();
19                 if(btstate === 'Off') {