Commit 50de7496ea9cd3412957e504a918c3fea3fb018a
- Diff rendering mode:
- inline
- side by side
|   | |||
| 1 | Index: /usr/palm/applications/com.palm.app.findapps/app/controllers/app-assistant.js | ||
| 2 | =================================================================== | ||
| 3 | --- .orig/usr/palm/applications/com.palm.app.findapps/app/controllers/app-assistant.js | ||
| 4 | +++ /usr/palm/applications/com.palm.app.findapps/app/controllers/app-assistant.js | ||
| 5 | @@ -189,6 +189,10 @@ | ||
| 1 | diff --git a/usr/palm/applications/com.palm.app.findapps/app/controllers/app-assistant.js b/usr/palm/applications/com.palm.app.findapps/app/controllers/app-assistant.js | ||
| 2 | index 8115472..26aec73 100644 | ||
| 3 | --- a/usr/palm/applications/com.palm.app.findapps/app/controllers/app-assistant.js | ||
| 4 | +++ b/usr/palm/applications/com.palm.app.findapps/app/controllers/app-assistant.js | ||
| 5 | @@ -189,6 +189,10 @@ var DefaultStageAssistant = Class.create( | ||
| 6 | 6 | var self = this; | |
| 7 | 7 | var menu = new Weave.Utilities.AppMenu() | |
| 8 | 8 | .addEdit() | |
| … | … | ||
| 13 | 13 | .addItem($L('Preferences & Accounts'), | |
| 14 | 14 | function() | |
| 15 | 15 | { | |
| 16 | Index: /usr/palm/applications/com.palm.app.findapps/app/controllers/hide-assistant.js | ||
| 17 | =================================================================== | ||
| 18 | --- .orig/usr/palm/applications/com.palm.app.findapps/app/controllers/hide-assistant.js | ||
| 19 | +++ /usr/palm/applications/com.palm.app.findapps/app/controllers/hide-assistant.js | ||
| 16 | diff --git a/usr/palm/applications/com.palm.app.findapps/app/controllers/hide-assistant.js b/usr/palm/applications/com.palm.app.findapps/app/controllers/hide-assistant.js | ||
| 17 | new file mode 100644 | ||
| 18 | index 0000000..0321579 | ||
| 19 | --- /dev/null | ||
| 20 | +++ b/usr/palm/applications/com.palm.app.findapps/app/controllers/hide-assistant.js | ||
| 20 | 21 | @@ -0,0 +1,46 @@ | |
| 21 | 22 | +/*jslint browser: true, eqeqeq: true, undef: true */ | |
| 22 | 23 | +/****************************************************************************** | |
| … | … | ||
| 65 | 65 | + this.update(); | |
| 66 | 66 | + }, | |
| 67 | 67 | +}); | |
| 68 | Index: /usr/palm/applications/com.palm.app.findapps/app/controllers/search-assistant.js | ||
| 69 | =================================================================== | ||
| 70 | --- .orig/usr/palm/applications/com.palm.app.findapps/app/controllers/search-assistant.js | ||
| 71 | +++ /usr/palm/applications/com.palm.app.findapps/app/controllers/search-assistant.js | ||
| 72 | @@ -29,6 +29,8 @@ | ||
| 68 | diff --git a/usr/palm/applications/com.palm.app.findapps/app/controllers/search-assistant.js b/usr/palm/applications/com.palm.app.findapps/app/controllers/search-assistant.js | ||
| 69 | index 41fa796..7bda4d3 100644 | ||
| 70 | --- a/usr/palm/applications/com.palm.app.findapps/app/controllers/search-assistant.js | ||
| 71 | +++ b/usr/palm/applications/com.palm.app.findapps/app/controllers/search-assistant.js | ||
| 72 | @@ -29,6 +29,8 @@ var SearchAssistant = Class.create( | ||
| 73 | 73 | this._searchApps = this._searchApps.bindAsEventListener(this); | |
| 74 | 74 | this._formatAppDivider = this._formatAppDivider.bind(this); | |
| 75 | 75 | ||
| … | … | ||
| 78 | 78 | // Set up the attributes & prepare this widget for lazy loading of data | |
| 79 | 79 | this._searchListAttr = | |
| 80 | 80 | { | |
| 81 | @@ -146,6 +148,8 @@ | ||
| 81 | @@ -146,6 +148,8 @@ var SearchAssistant = Class.create( | ||
| 82 | 82 | this._appsSearch.button.addEventListener(Mojo.Event.tap, this._searchApps); | |
| 83 | 83 | // Refocus search field | |
| 84 | 84 | this._appsSearch.widget.mojo.focus(); | |
| … | … | ||
| 87 | 87 | }, | |
| 88 | 88 | ||
| 89 | 89 | deactivate: function() | |
| 90 | @@ -296,6 +300,24 @@ | ||
| 90 | @@ -296,6 +300,24 @@ var SearchAssistant = Class.create( | ||
| 91 | 91 | model.formattedUpdate = (this._getApplicationInstalledState(model) == 'update' ? 'has-update' : ''); | |
| 92 | 92 | // HACK - author fixup | |
| 93 | 93 | model.author = (model.author ? model.author : ' '); | |
| … | … | ||
| 112 | 112 | }, | |
| 113 | 113 | ||
| 114 | 114 | _formatAppDivider: function(model) | |
| 115 | Index: /usr/palm/applications/com.palm.app.findapps/app/model/hide-list.js | ||
| 116 | =================================================================== | ||
| 117 | --- .orig/usr/palm/applications/com.palm.app.findapps/app/model/hide-list.js | ||
| 118 | +++ /usr/palm/applications/com.palm.app.findapps/app/model/hide-list.js | ||
| 115 | diff --git a/usr/palm/applications/com.palm.app.findapps/app/model/hide-list.js b/usr/palm/applications/com.palm.app.findapps/app/model/hide-list.js | ||
| 116 | new file mode 100644 | ||
| 117 | index 0000000..ca74a14 | ||
| 118 | --- /dev/null | ||
| 119 | +++ b/usr/palm/applications/com.palm.app.findapps/app/model/hide-list.js | ||
| 119 | 120 | @@ -0,0 +1,101 @@ | |
| 120 | 121 | +/*jslint browser: true, eqeqeq: true, undef: true */ | |
| 121 | 122 | +/*global Mojo */ | |
| … | … | ||
| 219 | 219 | + | |
| 220 | 220 | +HideList.initialize(); | |
| 221 | 221 | + | |
| 222 | Index: /usr/palm/applications/com.palm.app.findapps/app/views/hide/hide-scene.html | ||
| 223 | =================================================================== | ||
| 224 | --- .orig/usr/palm/applications/com.palm.app.findapps/app/views/hide/hide-scene.html | ||
| 225 | +++ /usr/palm/applications/com.palm.app.findapps/app/views/hide/hide-scene.html | ||
| 222 | diff --git a/usr/palm/applications/com.palm.app.findapps/app/views/hide/hide-scene.html b/usr/palm/applications/com.palm.app.findapps/app/views/hide/hide-scene.html | ||
| 223 | new file mode 100644 | ||
| 224 | index 0000000..1f12b9f | ||
| 225 | --- /dev/null | ||
| 226 | +++ b/usr/palm/applications/com.palm.app.findapps/app/views/hide/hide-scene.html | ||
| 226 | 227 | @@ -0,0 +1,19 @@ | |
| 227 | 228 | +<div class="palm-scene hide-scene"> | |
| 228 | 229 | + <div class="palm-page-header multi-line"> | |
| … | … | ||
| 244 | 244 | + x-mojo-element="TextField"></div> | |
| 245 | 245 | + | |
| 246 | 246 | +</div> | |
| 247 | Index: /usr/palm/applications/com.palm.app.findapps/app/views/search/search-appsummary.html | ||
| 248 | =================================================================== | ||
| 249 | --- .orig/usr/palm/applications/com.palm.app.findapps/app/views/search/search-appsummary.html | ||
| 250 | +++ /usr/palm/applications/com.palm.app.findapps/app/views/search/search-appsummary.html | ||
| 247 | diff --git a/usr/palm/applications/com.palm.app.findapps/app/views/search/search-appsummary.html b/usr/palm/applications/com.palm.app.findapps/app/views/search/search-appsummary.html | ||
| 248 | index 07d7a8c..cb73c28 100644 | ||
| 249 | --- a/usr/palm/applications/com.palm.app.findapps/app/views/search/search-appsummary.html | ||
| 250 | +++ b/usr/palm/applications/com.palm.app.findapps/app/views/search/search-appsummary.html | ||
| 251 | 251 | @@ -1,5 +1,5 @@ | |
| 252 | 252 | -<div class="palm-row" x-mojo-tap-highlight='momentary'> | |
| 253 | 253 | - <div class="palm-row-wrapper padded"> | |
| … | … | ||
| 256 | 256 | <div class="icon left search-result-app-icon #{formattedUpdate}"> | |
| 257 | 257 | <div class="loadingicon"></div> | |
| 258 | 258 | <div class="update-badge"></div> | |
| 259 | Index: /usr/palm/applications/com.palm.app.findapps/index-default.html | ||
| 260 | =================================================================== | ||
| 261 | --- .orig/usr/palm/applications/com.palm.app.findapps/index-default.html | ||
| 262 | +++ /usr/palm/applications/com.palm.app.findapps/index-default.html | ||
| 259 | diff --git a/usr/palm/applications/com.palm.app.findapps/index-default.html b/usr/palm/applications/com.palm.app.findapps/index-default.html | ||
| 260 | index a77c2d7..851999e 100644 | ||
| 261 | --- a/usr/palm/applications/com.palm.app.findapps/index-default.html | ||
| 262 | +++ b/usr/palm/applications/com.palm.app.findapps/index-default.html | ||
| 263 | 263 | @@ -7,6 +7,7 @@ | |
| 264 | 264 | <head> | |
| 265 | 265 | <script src="/usr/palm/frameworks/mojo/mojo.js" x-mojo-version="1" xx-mojo-submission="trunk" type="text/javascript"></script> | |
| … | … | ||
| 268 | 268 | </head> | |
| 269 | 269 | ||
| 270 | 270 | <body class="wallpaper"> | |
| 271 | Index: /usr/palm/applications/com.palm.app.findapps/sources.json | ||
| 272 | =================================================================== | ||
| 273 | --- .orig/usr/palm/applications/com.palm.app.findapps/sources.json | ||
| 274 | +++ /usr/palm/applications/com.palm.app.findapps/sources.json | ||
| 271 | diff --git a/usr/palm/applications/com.palm.app.findapps/sources.json b/usr/palm/applications/com.palm.app.findapps/sources.json | ||
| 272 | index 9aad548..4405991 100644 | ||
| 273 | --- a/usr/palm/applications/com.palm.app.findapps/sources.json | ||
| 274 | +++ b/usr/palm/applications/com.palm.app.findapps/sources.json | ||
| 275 | 275 | @@ -69,6 +69,9 @@ | |
| 276 | 276 | "source": "app\/controllers\/change-email-address-assistant.js" | |
| 277 | 277 | }, | |
| … | … | ||
| 293 | 293 | "source": "app\/controllers\/prefs-assistant.js", | |
| 294 | 294 | "scenes": "prefs" | |
| 295 | 295 | }, | |
| 296 | Index: /usr/palm/applications/com.palm.app.findapps/stylesheets/appcatalog.css | ||
| 297 | =================================================================== | ||
| 298 | --- .orig/usr/palm/applications/com.palm.app.findapps/stylesheets/appcatalog.css | ||
| 299 | +++ /usr/palm/applications/com.palm.app.findapps/stylesheets/appcatalog.css | ||
| 300 | @@ -1579,3 +1579,37 @@ | ||
| 296 | diff --git a/usr/palm/applications/com.palm.app.findapps/stylesheets/appcatalog.css b/usr/palm/applications/com.palm.app.findapps/stylesheets/appcatalog.css | ||
| 297 | index 6db1994..65cc955 100644 | ||
| 298 | --- a/usr/palm/applications/com.palm.app.findapps/stylesheets/appcatalog.css | ||
| 299 | +++ b/usr/palm/applications/com.palm.app.findapps/stylesheets/appcatalog.css | ||
| 300 | @@ -1579,3 +1579,37 @@ a:hover.table-of-contents {color: #1F00F0;} | ||
| 301 | 301 | /* -webkit-box-sizing: border-box; */ | |
| 302 | 302 | } | |
| 303 | 303 |
|   | |||
| 1 | 1 | diff --git a/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js b/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js | |
| 2 | index bebbad2..5814b08 100644 | ||
| 2 | index bebbad2..851c45e 100644 | ||
| 3 | 3 | --- a/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js | |
| 4 | 4 | +++ b/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js | |
| 5 | 5 | @@ -10,7 +10,7 @@ var LauncherAssistant = Class.create({ | |
| … | … | ||
| 48 | 48 | - this.kAppHeight = newAppDiv.getHeight(); | |
| 49 | 49 | - this.kAppsPerRow = Math.round(this.kPageWidthNoMargin / this.kAppWidth); | |
| 50 | 50 | + this.kAppWidth = 80; | |
| 51 | + this.kAppHeight = 88; | ||
| 51 | + this.kAppHeight = 91; | ||
| 52 | 52 | + this.kAppsPerRow = 4; | |
| 53 | 53 | } | |
| 54 | 54 | ||
| … | … | ||
| 72 | 72 | this.showAppInfoMenu(appInfo); | |
| 73 | 73 | } else if (!this.feedbackTimeout) { // are we already trying to launch something? | |
| 74 | 74 | diff --git a/usr/lib/luna/system/luna-applauncher/stylesheets/launcher.css b/usr/lib/luna/system/luna-applauncher/stylesheets/launcher.css | |
| 75 | index 545460c..bd17230 100644 | ||
| 75 | index 545460c..1fbd22f 100644 | ||
| 76 | 76 | --- a/usr/lib/luna/system/luna-applauncher/stylesheets/launcher.css | |
| 77 | 77 | +++ b/usr/lib/luna/system/luna-applauncher/stylesheets/launcher.css | |
| 78 | @@ -125,7 +125,7 @@ body.palm-default | ||
| 78 | @@ -21,7 +21,7 @@ body.palm-default | ||
| 79 | width: 320px; | ||
| 80 | height: 100%; | ||
| 81 | } | ||
| 82 | - | ||
| 83 | +/* | ||
| 84 | .launcher_fade_bottom { | ||
| 85 | position: absolute; | ||
| 86 | bottom: 0px; | ||
| 87 | @@ -63,7 +63,7 @@ body.palm-default | ||
| 88 | background: url(../images/fade-arrow-up.png) center center no-repeat; | ||
| 89 | -webkit-palm-mouse-target: ignore; | ||
| 90 | } | ||
| 91 | - | ||
| 92 | +*/ | ||
| 93 | #pages_container { | ||
| 94 | position:relative; | ||
| 95 | left:0px; | ||
| 96 | @@ -75,7 +75,7 @@ body.palm-default | ||
| 97 | #page_indicators { | ||
| 98 | position:absolute; | ||
| 99 | bottom: 0px; | ||
| 100 | - height:20px; | ||
| 101 | + height:7px; | ||
| 102 | width: 100%; | ||
| 103 | z-index:30; | ||
| 104 | -webkit-palm-mouse-target: ignore; | ||
| 105 | @@ -86,7 +86,7 @@ body.palm-default | ||
| 106 | background: url(../images/launcher-page-indicator.png) no-repeat; | ||
| 107 | /* left/top provided by JS */ | ||
| 108 | width:7px; | ||
| 109 | - height:15px; | ||
| 110 | + height:7px; | ||
| 111 | -webkit-palm-mouse-target: ignore; | ||
| 112 | } | ||
| 79 | 113 | ||
| 114 | @@ -125,16 +125,17 @@ body.palm-default | ||
| 115 | |||
| 80 | 116 | .launcher_page .name { | |
| 81 | 117 | position:absolute; | |
| 82 | 118 | - top: 68px; | |
| 83 | + top: 60px; | ||
| 84 | width:100px; | ||
| 119 | - width:100px; | ||
| 120 | + top: 61px; | ||
| 121 | + left:10px; | ||
| 122 | + width:80px; | ||
| 85 | 123 | height: 34px; | |
| 86 | 124 | max-height: 34px; | |
| 87 | @@ -134,7 +134,7 @@ body.palm-default | ||
| 125 | clear:both; | ||
| 126 | - line-height:16px; | ||
| 127 | + line-height:13px; | ||
| 88 | 128 | color:white; | |
| 89 | 129 | text-align:center; | |
| 90 | 130 | font-weight:bold; | |
| … | … | ||
| 133 | 133 | overflow: hidden; | |
| 134 | 134 | text-overflow: ellipsis; | |
| 135 | 135 | z-index:5; | |
| 136 | @@ -263,8 +263,8 @@ body.palm-default | ||
| 136 | @@ -263,8 +264,8 @@ body.palm-default | ||
| 137 | 137 | } | |
| 138 | 138 | ||
| 139 | 139 | .draggable { | |
| … | … | ||
| 144 | 144 | margin: 0 auto; | |
| 145 | 145 | -webkit-user-drag: any; | |
| 146 | 146 | -webkit-user-select: none; | |
| 147 | @@ -312,8 +312,8 @@ body.palm-default | ||
| 147 | @@ -312,8 +313,8 @@ body.palm-default | ||
| 148 | 148 | ||
| 149 | 149 | #app-icon { | |
| 150 | 150 | float:left; |
|   | |||
| 1 | Name: Advanced Options in Launcher | ||
| 2 | Version: 1.3.5.1-1 | ||
| 3 | Author: Jason Robitaille | ||
| 4 | Description: Adds additional options to the launcher's menu: turn on/off DevMode, rescan fileindexer, and rescan applications (MIT license) | ||
| 5 | |||
| 6 | --- .orig/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js | ||
| 7 | +++ /usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js | ||
| 8 | @@ -28,6 +28,7 @@ | ||
| 1 | diff --git a/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js b/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js | ||
| 2 | index bebbad2..af87a53 100644 | ||
| 3 | --- a/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js | ||
| 4 | +++ b/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js | ||
| 5 | @@ -28,6 +28,7 @@ var LauncherAssistant = Class.create({ | ||
| 9 | 6 | Mojo.Menu.editItem, | |
| 10 | 7 | { label: $L('List Apps...'), command: 'listapps' }, | |
| 11 | 8 | { label: $L('Default Applications'), command: 'defaultapps'}, | |
| … | … | ||
| 10 | 10 | Mojo.Menu.helpItem | |
| 11 | 11 | ] | |
| 12 | 12 | }, | |
| 13 | @@ -115,6 +116,84 @@ | ||
| 13 | @@ -115,6 +116,95 @@ var LauncherAssistant = Class.create({ | ||
| 14 | 14 | handleCommand: function(event) { | |
| 15 | 15 | if (event.type == Mojo.Event.command) { | |
| 16 | 16 | switch (event.command) { | |
| … | … | ||
| 26 | 26 | + parameters: {}, | |
| 27 | 27 | + onSuccess: function(response){ | |
| 28 | 28 | + var choices = [ | |
| 29 | + {label:"Toggle DevMode", value:'devmode'}, | ||
| 30 | + {label:"Rescan Fileindexer", value:'fileindexer'}, | ||
| 29 | + {label:"Toggle DevMode", value:'devmode'}, | ||
| 31 | 30 | + {label:"Rescan Applications", value:'rescanapps'}, | |
| 31 | + {label:"Rescan Fileindexer", value:'fileindexer'}, | ||
| 32 | + {label:"Run Garbage Collectors", value:'gc'}, | ||
| 32 | 33 | + {label:"Cancel", value:'cancel', type:'secondary'} | |
| 33 | 34 | + ]; | |
| 34 | 35 | + this.inDevMode = response.isEnabled; | |
| … | … | ||
| 45 | 45 | + onChoose: function(value){ | |
| 46 | 46 | + if(value=='reset') { | |
| 47 | 47 | + this.controller.serviceRequest('palm://com.palm.connectionmanager', { | |
| 48 | + method: 'getnovacommode', | ||
| 48 | + method: 'setnovacommode', | ||
| 49 | 49 | + parameters: { | |
| 50 | 50 | + isEnabled:!this.inDevMode | |
| 51 | 51 | + }, | |
| … | … | ||
| 81 | 81 | + parameters: {} | |
| 82 | 82 | + }); | |
| 83 | 83 | + SystemManagerService.showQuickLaunch(this.showQLBar); | |
| 84 | + } else if(value=='gc') { | ||
| 85 | + this.controller.serviceRequest('palm://ca.canucksoftware.filemgr', { | ||
| 86 | + method: 'gc', //java garbage collect | ||
| 87 | + parameters: {} | ||
| 88 | + }); | ||
| 89 | + this.controller.serviceRequest('palm://com.palm.lunastats',{ | ||
| 90 | + method: 'gc', //javascript garbage collect | ||
| 91 | + parameters: {}, | ||
| 92 | + }); | ||
| 93 | + SystemManagerService.showQuickLaunch(this.showQLBar); | ||
| 84 | 94 | + } else { | |
| 85 | 95 | + SystemManagerService.showQuickLaunch(this.showQLBar); | |
| 86 | 96 | + } |
|   | |||
| 1 | Name: Hide Quick Launch Bar | ||
| 2 | Version: 1.3.1-1 | ||
| 3 | Author: Jason Robitaille | ||
| 4 | Description: Hides the quick launch bar (while still alowing the quick launch wave) (MIT license) | ||
| 5 | |||
| 6 | --- .orig/usr/lib/luna/system/luna-applauncher/app/models/SystemManagerService.js | ||
| 7 | +++ /usr/lib/luna/system/luna-applauncher/app/models/SystemManagerService.js | ||
| 8 | @@ -7,7 +7,7 @@ | ||
| 9 | SystemManagerService.showQuickLaunch = function(show) { | ||
| 10 | var request = new Mojo.Service.Request(SystemManagerService.SysMgrId, { | ||
| 11 | method: 'systemUi', | ||
| 12 | - parameters: {'quicklaunch':show} | ||
| 13 | + parameters: {'quicklaunch':false} | ||
| 14 | }); | ||
| 15 | request = null; | ||
| 16 | } | ||
| 17 | \ No newline at end of file | ||
| 18 | --- .orig/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js | ||
| 19 | +++ /usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js | ||
| 20 | @@ -8,7 +8,7 @@ | ||
| 1 | diff --git a/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js b/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js | ||
| 2 | index bebbad2..013a694 100644 | ||
| 3 | --- a/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js | ||
| 4 | +++ b/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js | ||
| 5 | @@ -8,7 +8,7 @@ var LauncherAssistant = Class.create({ | ||
| 21 | 6 | * hardcoding the quick launch height until we can find a better way. | |
| 22 | 7 | * This value = ql graphic height - the offset from the top (small fade area) | |
| 23 | 8 | */ | |
| … | … | ||
| 11 | 11 | ||
| 12 | 12 | kPageIndicatorSpacing: 6, /* spacing between each page indicator */ | |
| 13 | 13 | kPageMargin: 10, /* 10 pixel margin on each side of a page */ | |
| 14 | --- .orig/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js | ||
| 15 | +++ /usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js | ||
| 16 | @@ -17,6 +17,11 @@ | ||
| 14 | diff --git a/usr/lib/luna/system/luna-applauncher/app/models/SystemManagerService.js b/usr/lib/luna/system/luna-applauncher/app/models/SystemManagerService.js | ||
| 15 | index e9f6856..2e42778 100644 | ||
| 16 | --- a/usr/lib/luna/system/luna-applauncher/app/models/SystemManagerService.js | ||
| 17 | +++ b/usr/lib/luna/system/luna-applauncher/app/models/SystemManagerService.js | ||
| 18 | @@ -7,7 +7,7 @@ function SystemManagerService() { | ||
| 19 | SystemManagerService.showQuickLaunch = function(show) { | ||
| 20 | var request = new Mojo.Service.Request(SystemManagerService.SysMgrId, { | ||
| 21 | method: 'systemUi', | ||
| 22 | - parameters: {'quicklaunch':show} | ||
| 23 | + parameters: {'quicklaunch':false} | ||
| 24 | }); | ||
| 25 | request = null; | ||
| 26 | } | ||
| 27 | 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 | ||
| 28 | index 6fdbb39..99e0226 100644 | ||
| 29 | --- a/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js | ||
| 30 | +++ b/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js | ||
| 31 | @@ -17,6 +17,11 @@ var BarAssistant = Class.create({ | ||
| 17 | 32 | this.wifiState = 'Off'; | |
| 18 | 33 | this.wifiRadio = false; | |
| 19 | 34 | ||
| … | … | ||
| 40 | 40 | $('rssi').className = 'nobars'; | |
| 41 | 41 | $('datanet').className = 'off'; | |
| 42 | 42 | $('wifi').className = 'off'; | |
| 43 | @@ -230,6 +235,12 @@ | ||
| 44 | $('appname').innerHTML = this.carrierText; | ||
| 45 | this.phoneIsForeground = true; | ||
| 43 | @@ -260,12 +265,23 @@ handleAppName:function(payload){ | ||
| 44 | } | ||
| 45 | $('appname').innerHTML = $L("Preferences"); | ||
| 46 | 46 | } | |
| 47 | 47 | + else if (payload.id == "com.palm.launcher"){ | |
| 48 | 48 | + this.controller.serviceRequest('palm://com.palm.systemmanager', { | |
| 49 | 49 | + method: 'systemUi', | |
| 50 | 50 | + parameters: {"quicklaunch": false} | |
| 51 | 51 | + }); | |
| 52 | + $('appname').innerHTML = payload.appmenu || payload.title; | ||
| 52 | 53 | + } | |
| 53 | else if (this.isPreferences(payload)) { | ||
| 54 | if(payload.id == "com.palm.app.updates") { | ||
| 55 | this.updateIsForeground = true; | ||
| 56 | @@ -242,6 +253,10 @@ | ||
| 54 | else | ||
| 55 | $('appname').innerHTML = payload.appmenu || payload.title; | ||
| 56 | $('appname').show(); | ||
| 57 | 57 | this.foregroundAppID = payload.id; | |
| 58 | 58 | } | |
| 59 | 59 | else{ |
|   | |||
| 20 | 20 | }, | |
| 21 | 21 | ||
| 22 | 22 | diff --git a/usr/palm/applications/com.palm.app.clock/app/controllers/settings-assistant.js b/usr/palm/applications/com.palm.app.clock/app/controllers/settings-assistant.js | |
| 23 | index 65c8202..f6f3aef 100644 | ||
| 23 | index 65c8202..af0a2ea 100644 | ||
| 24 | 24 | --- a/usr/palm/applications/com.palm.app.clock/app/controllers/settings-assistant.js | |
| 25 | 25 | +++ b/usr/palm/applications/com.palm.app.clock/app/controllers/settings-assistant.js | |
| 26 | @@ -1,6 +1,30 @@ | ||
| 26 | @@ -1,6 +1,26 @@ | ||
| 27 | 27 | /* Copyright 2009 Palm, Inc. All rights reserved. */ | |
| 28 | 28 | ||
| 29 | 29 | var SettingsAssistant = Class.create({ | |
| 30 | 30 | + // values for snooze duration listselector | |
| 31 | 31 | + snoozeDurationChoices: [ | |
| 32 | 32 | + { | |
| 33 | + label: $L("3 min."), | ||
| 34 | + value: 3 | ||
| 35 | + }, | ||
| 36 | + { | ||
| 37 | 33 | + label: $L("5 min."), | |
| 38 | 34 | + value: 5 | |
| 39 | 35 | + }, | |
| … | … | ||
| 50 | 50 | initialize: function(settings, themes, onThemeChange) { | |
| 51 | 51 | this.appController = Mojo.Controller.getAppController(); | |
| 52 | 52 | ||
| 53 | @@ -14,7 +38,7 @@ var SettingsAssistant = Class.create({ | ||
| 53 | @@ -14,7 +34,7 @@ var SettingsAssistant = Class.create({ | ||
| 54 | 54 | this.initializeSettings(); | |
| 55 | 55 | ||
| 56 | 56 | this.onKeyPress = this.onKeyPress.bind(this); | |
| … | … | ||
| 59 | 59 | this.easterString = ""; | |
| 60 | 60 | ||
| 61 | 61 | }, | |
| 62 | @@ -22,8 +46,12 @@ var SettingsAssistant = Class.create({ | ||
| 62 | @@ -22,8 +42,12 @@ var SettingsAssistant = Class.create({ | ||
| 63 | 63 | // VERY IMPORTANT: UI for ringer switch has OPPOSITE MEANING of variable | |
| 64 | 64 | // it's reversed here for display and must be reversed back when saving | |
| 65 | 65 | initializeSettings: function() { | |
| … | … | ||
| 74 | 74 | }, | |
| 75 | 75 | ||
| 76 | 76 | setup: function() { | |
| 77 | @@ -50,6 +78,15 @@ var SettingsAssistant = Class.create({ | ||
| 77 | @@ -50,6 +74,15 @@ var SettingsAssistant = Class.create({ | ||
| 78 | 78 | ||
| 79 | 79 | this.controller.get('theme_set').observe(Mojo.Event.tap, this.onThemeSelect); | |
| 80 | 80 | ||
| … | … | ||
| 90 | 90 | this.controller.listen(this.controller.sceneElement, Mojo.Event.keypress, this.onKeyPress); | |
| 91 | 91 | ||
| 92 | 92 | }, | |
| 93 | @@ -74,6 +111,10 @@ var SettingsAssistant = Class.create({ | ||
| 93 | @@ -74,6 +107,10 @@ var SettingsAssistant = Class.create({ | ||
| 94 | 94 | this.settings.ringerSwitchObeyedSet(!(this.settingsModel.ringerSwitchObeyed)); | |
| 95 | 95 | }, | |
| 96 | 96 |
|   | |||
| 1 | diff --git a/usr/palm/applications/com.palm.app.email/app/controllers/message-assistant.js b/usr/palm/applications/com.palm.app.email/app/controllers/message-assistant.js | ||
| 2 | index 362383b..e208961 100644 | ||
| 3 | --- a/usr/palm/applications/com.palm.app.email/app/controllers/message-assistant.js | ||
| 4 | +++ b/usr/palm/applications/com.palm.app.email/app/controllers/message-assistant.js | ||
| 5 | @@ -72,6 +72,7 @@ var MessageAssistant = Class.create({ | ||
| 6 | this.cmdMenuModel = { | ||
| 7 | visible:true, | ||
| 8 | items: [ | ||
| 9 | + {label:$L('Move'), icon:'file', command:'move'}, | ||
| 10 | {label:$L('Reply'), icon:'reply', command:'reply'}, | ||
| 11 | {label:$L('Reply all'), icon:'reply-all', command:'replyAll'}, | ||
| 12 | {label:$L('Forward'), icon:'forward-email', command:'forward'}, | ||
| 13 | @@ -106,7 +107,6 @@ var MessageAssistant = Class.create({ | ||
| 14 | emailEditItems, | ||
| 15 | this.markUnreadMenuItem, | ||
| 16 | this.markSetFlagMenuItem, | ||
| 17 | - {label:$L('Move to Folder...'), shortcut:'m', command:'move'}, | ||
| 18 | this.showRecipientsMenuItem, | ||
| 19 | Mojo.Menu.prefsItem, | ||
| 20 | Mojo.Menu.helpItem |
|   | |||
| 1 | 1 | diff --git a/usr/palm/applications/com.palm.app.email/app/controllers/message-assistant.js b/usr/palm/applications/com.palm.app.email/app/controllers/message-assistant.js | |
| 2 | index 567c7a1..d45815f 100644 | ||
| 2 | index 362383b..de6f1e3 100644 | ||
| 3 | 3 | --- a/usr/palm/applications/com.palm.app.email/app/controllers/message-assistant.js | |
| 4 | 4 | +++ b/usr/palm/applications/com.palm.app.email/app/controllers/message-assistant.js | |
| 5 | @@ -68,8 +68,8 @@ var MessageAssistant = Class.create({ | ||
| 5 | @@ -72,8 +72,8 @@ var MessageAssistant = Class.create({ | ||
| 6 | 6 | this.cmdMenuModel = { | |
| 7 | 7 | visible:true, | |
| 8 | 8 | items: [ | |
| 9 | + {label:$L('Move'), icon:'file', command:'move'}, | ||
| 9 | + {label:$L('Move'), icon:'file', command:'move'}, | ||
| 10 | 10 | {label:$L('Reply'), icon:'reply', command:'reply'}, | |
| 11 | 11 | - {label:$L('Reply all'), icon:'reply-all', command:'replyAll'}, | |
| 12 | 12 | {label:$L('Forward'), icon:'forward-email', command:'forward'}, | |
| 13 | 13 | {label:$L('Delete'), icon:'delete', command:'delete'} | |
| 14 | 14 | ]}; | |
| 15 | @@ -102,7 +102,7 @@ var MessageAssistant = Class.create({ | ||
| 15 | @@ -106,7 +106,7 @@ var MessageAssistant = Class.create({ | ||
| 16 | 16 | emailEditItems, | |
| 17 | 17 | this.markUnreadMenuItem, | |
| 18 | 18 | this.markSetFlagMenuItem, | |
| 19 | 19 | - {label:$L('Move to Folder...'), shortcut:'m', command:'move'}, | |
| 20 | + {label:$L('Reply all'), command:'replyAll'}, | ||
| 20 | + {label:$L('Reply All'), command:'replyAll'}, | ||
| 21 | 21 | this.showRecipientsMenuItem, | |
| 22 | 22 | Mojo.Menu.prefsItem, | |
| 23 | 23 | Mojo.Menu.helpItem |
|   | |||
| 1 | Name: No Network Time Zone Error | ||
| 2 | Version: 1.3.5-1 | ||
| 3 | Author: Jason Robitaille | ||
| 4 | Description: Under some circumstances, even with "network time" and "network time zone" disables, you'll still get an error at reboot about the network time zone be invalid. This patch gets rid of that error 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 | @@ -180,8 +180,8 @@ | ||
| 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 6fdbb39..5b52355 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 | @@ -183,8 +183,8 @@ handleSystemTimeUpdate: function(payload) { | ||
| 9 | 6 | return; | |
| 10 | 7 | this.startClock(); | |
| 11 | 8 |
|   | |||
| 1 | Name: Advanced Reset Options | ||
| 2 | Version: 1.3.5.1-1 | ||
| 3 | Author: Jason Robitaille | ||
| 4 | Description: On power button hold, it goes straight to the reset options, with airplaine mode, java restart, and luna restart added, and skips the swap-battery/shutdown prompt. (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 | @@ -2426,7 +2426,7 @@ | ||
| 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 6fdbb39..8614738 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 | @@ -2426,7 +2426,7 @@ showPowerOffAlert: function() { | ||
| 9 | 6 | var f = function(stageController){ | |
| 10 | 7 | stageController.pushScene('poweroffalert',this); | |
| 11 | 8 | }.bind(this); | |
| … | … | ||
| 11 | 11 | appController.createStageWithCallback(params,f,'popupalert'); | |
| 12 | 12 | } | |
| 13 | 13 | //Close the Storage Alert and create a USB dashboard. | |
| 14 | --- .orig/usr/lib/luna/system/luna-systemui/app/views/poweroffalert/poweroffalert-scene.html | ||
| 15 | +++ /usr/lib/luna/system/luna-systemui/app/views/poweroffalert/poweroffalert-scene.html | ||
| 16 | @@ -1,5 +1,8 @@ | ||
| 17 | <div class="system-notification power-off"> | ||
| 18 | <div class="palm-notification-button affirmative" x-mojo-tap-highlight="immediate" id='flightmode' x-mojo-loc=''></div> | ||
| 19 | - <div class="palm-notification-button negative" x-mojo-tap-highlight="immediate" id='poweroff' x-mojo-loc=''>Power</div> | ||
| 20 | + <div class="palm-notification-button alternate" x-mojo-tap-highlight="immediate" id='java' x-mojo-loc=''>Java-Services Restart</div> | ||
| 21 | + <div class="palm-notification-button alternate" x-mojo-tap-highlight="immediate" id='luna' x-mojo-loc=''>Luna Restart</div> | ||
| 22 | + <div class="palm-notification-button alternate" x-mojo-tap-highlight="immediate" id='restart' x-mojo-loc=''>Device Restart</div> | ||
| 23 | + <div class="palm-notification-button negative" x-mojo-tap-highlight="immediate" id='shutdown' x-mojo-loc=''>Shut Down</div> | ||
| 24 | <div class="palm-notification-button" x-mojo-tap-highlight="immediate" id='cancel' x-mojo-loc=''>Cancel</div> | ||
| 25 | </div> | ||
| 26 | \ No newline at end of file | ||
| 27 | --- .orig/usr/lib/luna/system/luna-systemui/app/controllers/poweroffalert-assistant.js | ||
| 28 | +++ /usr/lib/luna/system/luna-systemui/app/controllers/poweroffalert-assistant.js | ||
| 29 | @@ -7,7 +7,10 @@ | ||
| 14 | diff --git a/usr/lib/luna/system/luna-systemui/app/controllers/poweroffalert-assistant.js b/usr/lib/luna/system/luna-systemui/app/controllers/poweroffalert-assistant.js | ||
| 15 | index 05ea355..96a4e70 100644 | ||
| 16 | --- a/usr/lib/luna/system/luna-systemui/app/controllers/poweroffalert-assistant.js | ||
| 17 | +++ b/usr/lib/luna/system/luna-systemui/app/controllers/poweroffalert-assistant.js | ||
| 18 | @@ -7,7 +7,10 @@ var PoweroffalertAssistant = Class.create({ | ||
| 30 | 19 | ||
| 31 | 20 | setup: function() { | |
| 32 | 21 | var flightMode = this.flightMode.bindAsEventListener(this); | |
| … | … | ||
| 27 | 27 | var cancel = this.cancel.bindAsEventListener(this); | |
| 28 | 28 | var launchAirplaneModeHelp = this.launchAirplaneModeHelp.bindAsEventListener(this); | |
| 29 | 29 | this.flightMode = this.barAssistant.getAirplaneMode(); | |
| 30 | @@ -16,7 +19,10 @@ | ||
| 30 | @@ -16,8 +19,11 @@ var PoweroffalertAssistant = Class.create({ | ||
| 31 | 31 | else | |
| 32 | 32 | this.controller.get('flightmode').innerHTML = "<div class='info-icon' id='airplaneInfo' x-mojo-touch-feedback='immediate'></div>" + $L('Airplane Mode'); | |
| 33 | 33 | ||
| … | … | ||
| 39 | 39 | + this.controller.get('shutdown').addEventListener(Mojo.Event.tap, shutdown); | |
| 40 | 40 | this.controller.get('cancel').addEventListener(Mojo.Event.tap, cancel); | |
| 41 | 41 | this.controller.get('airplaneInfo').addEventListener(Mojo.Event.tap, launchAirplaneModeHelp); | |
| 42 | @@ -46,6 +52,32 @@ | ||
| 42 | |||
| 43 | @@ -46,6 +52,32 @@ var PoweroffalertAssistant = Class.create({ | ||
| 43 | 44 | this.controller.window.close(); | |
| 44 | 45 | }, | |
| 45 | 46 | ||
| … | … | ||
| 73 | 73 | flightMode:function(event) { | |
| 74 | 74 | ||
| 75 | 75 | var targetId = event.target.id; | |
| 76 | diff --git a/usr/lib/luna/system/luna-systemui/app/views/poweroffalert/poweroffalert-scene.html b/usr/lib/luna/system/luna-systemui/app/views/poweroffalert/poweroffalert-scene.html | ||
| 77 | index dfb04c1..782b7d6 100644 | ||
| 78 | --- a/usr/lib/luna/system/luna-systemui/app/views/poweroffalert/poweroffalert-scene.html | ||
| 79 | +++ b/usr/lib/luna/system/luna-systemui/app/views/poweroffalert/poweroffalert-scene.html | ||
| 80 | @@ -1,5 +1,8 @@ | ||
| 81 | <div class="system-notification power-off"> | ||
| 82 | <div class="palm-notification-button affirmative" x-mojo-tap-highlight="immediate" id='flightmode' x-mojo-loc=''></div> | ||
| 83 | - <div class="palm-notification-button negative" x-mojo-tap-highlight="immediate" id='poweroff' x-mojo-loc=''>Power</div> | ||
| 84 | + <div class="palm-notification-button alternate" x-mojo-tap-highlight="immediate" id='java' x-mojo-loc=''>Java-Services Restart</div> | ||
| 85 | + <div class="palm-notification-button alternate" x-mojo-tap-highlight="immediate" id='luna' x-mojo-loc=''>Luna Restart</div> | ||
| 86 | + <div class="palm-notification-button alternate" x-mojo-tap-highlight="immediate" id='restart' x-mojo-loc=''>Device Restart</div> | ||
| 87 | + <div class="palm-notification-button negative" x-mojo-tap-highlight="immediate" id='shutdown' x-mojo-loc=''>Shut Down</div> | ||
| 88 | <div class="palm-notification-button" x-mojo-tap-highlight="immediate" id='cancel' x-mojo-loc=''>Cancel</div> | ||
| 89 | </div> | ||
| 90 | \ No newline at end of file |
|   | |||
| 1 | Name: "Just Charge" By Default | ||
| 2 | Version: 1.3.5-1 | ||
| 3 | Author: Jason Robitaille | ||
| 4 | Description: On plugging in your device, it'll automatically go into "Just Charge" with notification at bottom if you want to change to a different mode (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 | @@ -2101,7 +2101,7 @@ | ||
| 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 6fdbb39..61a8e7c 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 | @@ -2174,7 +2174,7 @@ storageHandleNotifications: function(payload) { | ||
| 9 | 6 | this.isUSBConnected = true; | |
| 10 | 7 | if (!this.onActiveCall) { | |
| 11 | 8 | if (this.canUSBAlertDisplayed()) | |
| … | … | ||
| 11 | 11 | else | |
| 12 | 12 | this.createUSBDashboard(); | |
| 13 | 13 | } | |
| 14 | @@ -2235,7 +2235,7 @@ | ||
| 14 | @@ -2308,7 +2308,7 @@ isUSBCableConnected: function() { | ||
| 15 | 15 | if (this.updateAvailable) | |
| 16 | 16 | this.createUSBDashboard(); | |
| 17 | 17 | else |
|   | |||
| 1 | Name: Reset Options On Power Button Hold | ||
| 2 | Version: 1.3.5-3 | ||
| 3 | Author: Jason Robitaille | ||
| 4 | Description: On power button hold, it goes straight to the reset options, with airplaine mode added, and skips the swap-battery/shutdown prompt, (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 | @@ -2426,7 +2426,7 @@ | ||
| 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 6fdbb39..d92c748 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 | @@ -2426,7 +2426,7 @@ showPowerOffAlert: function() { | ||
| 9 | 6 | var f = function(stageController){ | |
| 10 | 7 | stageController.pushScene('poweroffalert',this); | |
| 11 | 8 | }.bind(this); | |
| … | … | ||
| 11 | 11 | appController.createStageWithCallback(params,f,'popupalert'); | |
| 12 | 12 | } | |
| 13 | 13 | //Close the Storage Alert and create a USB dashboard. | |
| 14 | --- .orig/usr/lib/luna/system/luna-systemui/app/views/poweroffalert/poweroffalert-scene.html | ||
| 15 | +++ /usr/lib/luna/system/luna-systemui/app/views/poweroffalert/poweroffalert-scene.html | ||
| 16 | @@ -1,5 +1,6 @@ | ||
| 17 | <div class="system-notification power-off"> | ||
| 18 | <div class="palm-notification-button affirmative" x-mojo-tap-highlight="immediate" id='flightmode' x-mojo-loc=''></div> | ||
| 19 | - <div class="palm-notification-button negative" x-mojo-tap-highlight="immediate" id='poweroff' x-mojo-loc=''>Power</div> | ||
| 20 | + <div class="palm-notification-button alternate" x-mojo-tap-highlight="immediate" id='restart' x-mojo-loc=''>Restart</div> | ||
| 21 | + <div class="palm-notification-button negative" x-mojo-tap-highlight="immediate" id='shutdown' x-mojo-loc=''>Shut Down</div> | ||
| 22 | <div class="palm-notification-button" x-mojo-tap-highlight="immediate" id='cancel' x-mojo-loc=''>Cancel</div> | ||
| 23 | </div> | ||
| 24 | \ No newline at end of file | ||
| 25 | --- .orig/usr/lib/luna/system/luna-systemui/app/controllers/poweroffalert-assistant.js | ||
| 26 | +++ /usr/lib/luna/system/luna-systemui/app/controllers/poweroffalert-assistant.js | ||
| 27 | @@ -7,7 +7,8 @@ | ||
| 14 | diff --git a/usr/lib/luna/system/luna-systemui/app/controllers/poweroffalert-assistant.js b/usr/lib/luna/system/luna-systemui/app/controllers/poweroffalert-assistant.js | ||
| 15 | index 05ea355..abc4da1 100644 | ||
| 16 | --- a/usr/lib/luna/system/luna-systemui/app/controllers/poweroffalert-assistant.js | ||
| 17 | +++ b/usr/lib/luna/system/luna-systemui/app/controllers/poweroffalert-assistant.js | ||
| 18 | @@ -7,7 +7,8 @@ var PoweroffalertAssistant = Class.create({ | ||
| 28 | 19 | ||
| 29 | 20 | setup: function() { | |
| 30 | 21 | var flightMode = this.flightMode.bindAsEventListener(this); | |
| … | … | ||
| 25 | 25 | var cancel = this.cancel.bindAsEventListener(this); | |
| 26 | 26 | var launchAirplaneModeHelp = this.launchAirplaneModeHelp.bindAsEventListener(this); | |
| 27 | 27 | this.flightMode = this.barAssistant.getAirplaneMode(); | |
| 28 | @@ -16,7 +17,8 @@ | ||
| 28 | @@ -16,8 +17,9 @@ var PoweroffalertAssistant = Class.create({ | ||
| 29 | 29 | else | |
| 30 | 30 | this.controller.get('flightmode').innerHTML = "<div class='info-icon' id='airplaneInfo' x-mojo-touch-feedback='immediate'></div>" + $L('Airplane Mode'); | |
| 31 | 31 | ||
| … | … | ||
| 35 | 35 | + this.controller.get('shutdown').addEventListener(Mojo.Event.tap, shutdown); | |
| 36 | 36 | this.controller.get('cancel').addEventListener(Mojo.Event.tap, cancel); | |
| 37 | 37 | this.controller.get('airplaneInfo').addEventListener(Mojo.Event.tap, launchAirplaneModeHelp); | |
| 38 | @@ -46,6 +48,16 @@ | ||
| 38 | |||
| 39 | @@ -46,6 +48,16 @@ var PoweroffalertAssistant = Class.create({ | ||
| 39 | 40 | this.controller.window.close(); | |
| 40 | 41 | }, | |
| 41 | 42 | ||
| … | … | ||
| 53 | 53 | flightMode:function(event) { | |
| 54 | 54 | ||
| 55 | 55 | var targetId = event.target.id; | |
| 56 | diff --git a/usr/lib/luna/system/luna-systemui/app/views/poweroffalert/poweroffalert-scene.html b/usr/lib/luna/system/luna-systemui/app/views/poweroffalert/poweroffalert-scene.html | ||
| 57 | index dfb04c1..7ff0194 100644 | ||
| 58 | --- a/usr/lib/luna/system/luna-systemui/app/views/poweroffalert/poweroffalert-scene.html | ||
| 59 | +++ b/usr/lib/luna/system/luna-systemui/app/views/poweroffalert/poweroffalert-scene.html | ||
| 60 | @@ -1,5 +1,6 @@ | ||
| 61 | <div class="system-notification power-off"> | ||
| 62 | <div class="palm-notification-button affirmative" x-mojo-tap-highlight="immediate" id='flightmode' x-mojo-loc=''></div> | ||
| 63 | - <div class="palm-notification-button negative" x-mojo-tap-highlight="immediate" id='poweroff' x-mojo-loc=''>Power</div> | ||
| 64 | + <div class="palm-notification-button alternate" x-mojo-tap-highlight="immediate" id='restart' x-mojo-loc=''>Restart</div> | ||
| 65 | + <div class="palm-notification-button negative" x-mojo-tap-highlight="immediate" id='shutdown' x-mojo-loc=''>Shut Down</div> | ||
| 66 | <div class="palm-notification-button" x-mojo-tap-highlight="immediate" id='cancel' x-mojo-loc=''>Cancel</div> | ||
| 67 | </div> | ||
| 68 | \ No newline at end of file |
|   | |||
| 1 | diff --git a/usr/palm/applications/com.palm.app.phone/app/controllers/app-assistant.js b/usr/palm/applications/com.palm.app.phone/app/controllers/app-assistant.js | ||
| 2 | index 3ba467f..108c335 100644 | ||
| 3 | --- a/usr/palm/applications/com.palm.app.phone/app/controllers/app-assistant.js | ||
| 4 | +++ b/usr/palm/applications/com.palm.app.phone/app/controllers/app-assistant.js | ||
| 5 | @@ -193,20 +193,14 @@ AppAssistant.prototype.handleLaunch = function(params){ | ||
| 6 | if(PalmSystem.isMinimal) | ||
| 7 | return | ||
| 8 | else | ||
| 9 | - this.showDialpad(); | ||
| 10 | + this.showCallLog(); // start with call log instead of dialpad | ||
| 11 | } | ||
| 12 | } else { | ||
| 13 | |||
| 14 | if (!(this.telephonyEventListener.isPendingOrActive())) { | ||
| 15 | if (this.initialLaunch === false) { | ||
| 16 | QDLogger.log( "handleLaunch", "no args, no calls: focusing stage"); | ||
| 17 | - var appControl = Mojo.Controller.getAppController(); | ||
| 18 | - var stageController = appControl.getStageController(this.stageName); | ||
| 19 | - | ||
| 20 | - if (!stageController) { | ||
| 21 | - this.showDialpad(); | ||
| 22 | - } | ||
| 23 | - | ||
| 24 | + this.showCallLog(); // just show call log here | ||
| 25 | this.focusStage(); | ||
| 26 | } else { | ||
| 27 | QDLogger.log( "handleLaunch", "initial launch, so doing nothing"); | ||
| 28 | @@ -483,7 +477,7 @@ AppAssistant.prototype.showCallLog = function(contactId, number, type, keepHidde | ||
| 29 | this.sceneStack.push(sceneName); | ||
| 30 | sc.pushScene({ | ||
| 31 | "name": sceneName, | ||
| 32 | - transition: Mojo.Transition.crossFade | ||
| 33 | + transition: Mojo.Transition.none // we don't need the transition | ||
| 34 | }, type); | ||
| 35 | }.bind(this); | ||
| 36 | |||
| 37 | @@ -502,6 +496,9 @@ AppAssistant.prototype.showCallLog = function(contactId, number, type, keepHidde | ||
| 38 | if(type == 'missed') | ||
| 39 | stageController.delegateToSceneAssistant("updateMissedCalls") | ||
| 40 | stageController.activate(); | ||
| 41 | + pushLogScene(stageController); // get back the the all calls list | ||
| 42 | + return; | ||
| 43 | + stageController.activate(); | ||
| 44 | } | ||
| 45 | } | ||
| 46 | }; | ||
| 47 | @@ -718,7 +715,7 @@ AppAssistant.prototype.closePhoneStage = function() { | ||
| 48 | AppAssistant.prototype.hidePhoneStage = function(win) { | ||
| 49 | QDLogger.log("AppAssistant#hidePhoneStage"); | ||
| 50 | win.PalmSystem.hide(); | ||
| 51 | - this.showDialpad(null, true /* keep hidden */); | ||
| 52 | + this.showCallLog("", "", "", true /* keep hidden */); // just in case; show call log here | ||
| 53 | this.hidden = true; | ||
| 54 | } | ||
| 55 | |||
| 56 | @@ -752,14 +749,7 @@ AppAssistant.prototype.popActiveCall = function(params) { | ||
| 57 | if (stageController !== undefined) { | ||
| 58 | this.sceneStack = []; | ||
| 59 | stageController.popScenesTo(); | ||
| 60 | - if (this.backToCalllog) { | ||
| 61 | - if(this.calllogType == "missed") | ||
| 62 | - this.showCallLog("", "", "missed", true); | ||
| 63 | - else | ||
| 64 | - this.showCallLog("", "", "", true); | ||
| 65 | - } | ||
| 66 | - else | ||
| 67 | - this.showDialpad(null, true); | ||
| 68 | + this.showCallLog("", "", "", true); // return to call log | ||
| 69 | } else { | ||
| 70 | QDLogger.log( "popActiveCall", "undefined stage"); | ||
| 71 | } |
|   | |||
| 1 | 1 | diff --git a/usr/palm/applications/com.palm.app.email/app/controllers/email-dashboard-assistant.js b/usr/palm/applications/com.palm.app.email/app/controllers/email-dashboard-assistant.js | |
| 2 | index 4431398..79ec5cf 100644 | ||
| 2 | index 4431398..09ec6c3 100644 | ||
| 3 | 3 | --- a/usr/palm/applications/com.palm.app.email/app/controllers/email-dashboard-assistant.js | |
| 4 | 4 | +++ b/usr/palm/applications/com.palm.app.email/app/controllers/email-dashboard-assistant.js | |
| 5 | @@ -39,8 +39,10 @@ var EmailDashboardAssistant = Class.create({ | ||
| 6 | |||
| 7 | this.controller.sceneElement.stopObserving(Mojo.Event.tap, this.boundTapHandler); | ||
| 8 | // turn off throbber | ||
| 9 | + /* | ||
| 10 | Mojo.Log.info('Turning off throbber'); | ||
| 11 | this.controller.stageController.indicateNewContent(false); | ||
| 12 | + */ | ||
| 13 | }, | ||
| 14 | |||
| 15 | tapHandler: function(event) { | ||
| 16 | @@ -79,8 +81,10 @@ var EmailDashboardAssistant = Class.create({ | ||
| 5 | @@ -78,9 +78,6 @@ var EmailDashboardAssistant = Class.create({ | ||
| 6 | var content; | ||
| 17 | 7 | var latestDetails; | |
| 18 | 8 | ||
| 19 | // turn on throbber | ||
| 20 | + /* | ||
| 21 | Mojo.Log.info('Turning on throbber for new email notification'); | ||
| 22 | this.controller.stageController.indicateNewContent(true); | ||
| 23 | + */ | ||
| 9 | - // turn on throbber | ||
| 10 | - Mojo.Log.info('Turning on throbber for new email notification'); | ||
| 11 | - this.controller.stageController.indicateNewContent(true); | ||
| 24 | 12 | ||
| 25 | 13 | // update notifications if they are changed. | |
| 26 | 14 | this.notifications = notificationInfo; |
|   | |||
| 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 6fdbb39..b0ad34c 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 | @@ -1660,6 +1660,8 @@ handlePowerNotifications: function(payload) { | ||
| 6 | this.isCharging = true; | ||
| 7 | }.bind(this)); | ||
| 8 | |||
| 9 | + this.setForAutoOff(); | ||
| 10 | + | ||
| 11 | if (this.isCharging) { | ||
| 12 | Mojo.Log.info("SystemUI- Charger Notification "+ this.isCharging + " Last battery level "+ this.lastBatteryLevel); | ||
| 13 | if(this.batteryLevel == 100) | ||
| 14 | @@ -1692,6 +1694,66 @@ handlePowerNotifications: function(payload) { | ||
| 15 | } | ||
| 16 | }, | ||
| 17 | |||
| 18 | +setForAutoOff: function() { | ||
| 19 | + if(this.powerSource['inductive']==true) { | ||
| 20 | + this.controller.serviceRequest('palm://com.palm.display/control', { | ||
| 21 | + method: 'getProperty', | ||
| 22 | + parameters: { | ||
| 23 | + properties: ["onWhenConnected"] | ||
| 24 | + }, | ||
| 25 | + onSuccess: function(payload) { | ||
| 26 | + if(payload.onWhenConnected) { | ||
| 27 | + this.getAutoOffTimeout( | ||
| 28 | + function(response) { | ||
| 29 | + if(response.timeout!=604800) { | ||
| 30 | + this.setAutoOffCookie(response.timeout); | ||
| 31 | + this.setAutoOffTimeout(604800); | ||
| 32 | + } | ||
| 33 | + }.bind(this) | ||
| 34 | + ); | ||
| 35 | + } | ||
| 36 | + }.bind(this) | ||
| 37 | + }); | ||
| 38 | + } else { | ||
| 39 | + var timeout = this.getAutoOffCookie(); | ||
| 40 | + if(timeout.seconds != 604800) { | ||
| 41 | + this.setAutoOffTimeout(timeout.seconds); | ||
| 42 | + this.setAutoOffCookie(604800); | ||
| 43 | + } | ||
| 44 | + } | ||
| 45 | +}, | ||
| 46 | + | ||
| 47 | +getAutoOffCookie: function() { | ||
| 48 | + var cookie = new Mojo.Model.Cookie("auto-off"); | ||
| 49 | + var val = cookie.get(); | ||
| 50 | + if(!val) { | ||
| 51 | + val = {seconds:604800}; | ||
| 52 | + cookie.put(val); | ||
| 53 | + } | ||
| 54 | + return val; | ||
| 55 | +}, | ||
| 56 | + | ||
| 57 | +setAutoOffCookie: function(value) { | ||
| 58 | + var cookie = new Mojo.Model.Cookie("auto-off"); | ||
| 59 | + cookie.put({seconds:value}); | ||
| 60 | +}, | ||
| 61 | + | ||
| 62 | +getAutoOffTimeout: function(callback) { | ||
| 63 | + this.controller.serviceRequest('palm://com.palm.display/control', { | ||
| 64 | + method: 'getProperty', | ||
| 65 | + parameters:{properties:['timeout']}, | ||
| 66 | + onSuccess: callback | ||
| 67 | + }); | ||
| 68 | +}, | ||
| 69 | + | ||
| 70 | +setAutoOffTimeout: function(value) { | ||
| 71 | + this.controller.serviceRequest('palm://com.palm.display/control', { | ||
| 72 | + method: 'setProperty', | ||
| 73 | + parameters:{timeout:value} | ||
| 74 | + }); | ||
| 75 | + | ||
| 76 | +}, | ||
| 77 | + | ||
| 78 | handleCriticalPowerNotifications: function(payload) { | ||
| 79 | if(payload.cause) { | ||
| 80 | Mojo.Log.error("SystemUI - Battery Level is critical. Shutting down the phone "); | ||
| 1 | 81 | diff --git a/usr/palm/applications/com.palm.app.screenlock/app/controllers/securityconfig-assistant.js b/usr/palm/applications/com.palm.app.screenlock/app/controllers/securityconfig-assistant.js | |
| 2 | index 86eb675..0683764 100644 | ||
| 82 | index 86eb675..1e1c0a3 100644 | ||
| 3 | 83 | --- a/usr/palm/applications/com.palm.app.screenlock/app/controllers/securityconfig-assistant.js | |
| 4 | 84 | +++ b/usr/palm/applications/com.palm.app.screenlock/app/controllers/securityconfig-assistant.js | |
| 5 | 85 | @@ -19,6 +19,10 @@ var SecurityconfigAssistant = Class.create({ | |
| … | … | ||
| 118 | 118 | + toggleautoOffCharging: function(event) { | |
| 119 | 119 | + if(!event) | |
| 120 | 120 | + return; | |
| 121 | + this.setAutoOffCharging(event.value); | ||
| 121 | + this.setAutoOffCharging(); | ||
| 122 | 122 | + }, | |
| 123 | 123 | + | |
| 124 | 124 | + setAutoOffCharging: function(value) { | |
| 125 | 125 | + this.controller.serviceRequest('palm://com.palm.display/control', { | |
| 126 | 126 | + method: 'setProperty', | |
| 127 | 127 | + parameters: { | |
| 128 | + onWhenConnected: !value | ||
| 128 | + onWhenConnected: !this.autoOffChargingtoggleModel.value | ||
| 129 | 129 | + } | |
| 130 | 130 | + }); | |
| 131 | 131 | + }, | |
| … | … | ||
| 137 | 137 | + properties: ["onWhenConnected"] | |
| 138 | 138 | + }, | |
| 139 | 139 | + onSuccess: function(payload) { | |
| 140 | + this.autoOffChargingToggleModel.value = !payload.onWhenConnected; | ||
| 140 | + this.autoOffChargingtoggleModel.value = !payload.onWhenConnected; | ||
| 141 | 141 | + this.controller.modelChanged(this.autoOffChargingtoggleModel); | |
| 142 | 142 | + }.bind(this) | |
| 143 | 143 | + }); |
|   | |||
| 1 | Name: Data Toggle in Device Menu | ||
| 2 | Version: 1.2.1-1 | ||
| 3 | Author: Jason Robitaille | ||
| 4 | Description: Adds a data connection (ex. EVDO/1X) toggle to 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 | @@ -122,2 +122,3 @@ | ||
| 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 2a42b1a..4d0299b 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 | @@ -120,6 +120,7 @@ var DevicemenuAssistant = Class.create({ | ||
| 6 | this.controller.get('dm_bluetooth').addEventListener(Mojo.Event.tap, this.togglebluetoothList.bindAsEventListener(this)); | ||
| 7 | this.controller.get('wifi_radio').addEventListener(Mojo.Event.tap, this.toggleWifiRadio.bindAsEventListener(this)); | ||
| 9 | 8 | this.controller.get('bt_radio').addEventListener(Mojo.Event.tap, this.toggleBTRadio.bindAsEventListener(this)); | |
| 10 | 9 | + this.controller.get('dm_data').addEventListener(Mojo.Event.tap, this.toggleData.bindAsEventListener(this)); | |
| 11 | 10 | this.controller.get('bt_pref').addEventListener(Mojo.Event.tap,this.handleBluetoothLaunch.bindAsEventListener(this)); | |
| 12 | @@ -889,6 +890,25 @@ | ||
| 11 | this.controller.get('wifi_pref').addEventListener(Mojo.Event.tap,this.handleWiFiLaunch.bindAsEventListener(this)); | ||
| 12 | this.controller.get('scrim').addEventListener(Mojo.Event.tap, this.toggleDeviceMenu.bindAsEventListener(this)); | ||
| 13 | @@ -920,6 +921,25 @@ var DevicemenuAssistant = Class.create({ | ||
| 13 | 14 | this.controller.modelChanged(this.spinnerModel); | |
| 14 | 15 | }, | |
| 15 | 16 | ||
| … | … | ||
| 36 | 36 | close: function() { | |
| 37 | 37 | ||
| 38 | 38 | if (this.btdrawer.mojo.getOpenState()) { | |
| 39 | @@ -941,6 +961,18 @@ | ||
| 39 | @@ -972,6 +992,18 @@ var DevicemenuAssistant = Class.create({ | ||
| 40 | 40 | //this.controller.stageController.deactivate(); | |
| 41 | 41 | } | |
| 42 | 42 | else { | |
| … | … | ||
| 55 | 55 | this.isVisible = true; | |
| 56 | 56 | var date = new Date(); | |
| 57 | 57 | this.controller.get('dm_date').innerHTML = Mojo.Format.formatDate(date,{date:'EEE '}) + Mojo.Format.formatDate(date,{date:'long'}); | |
| 58 | --- .orig/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html | ||
| 59 | +++ /usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html | ||
| 60 | @@ -89,6 +89,15 @@ | ||
| 61 | |||
| 62 | </div> | ||
| 58 | diff --git a/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html b/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html | ||
| 59 | index 933094e..07274c3 100644 | ||
| 60 | --- a/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html | ||
| 61 | +++ b/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html | ||
| 62 | @@ -94,6 +94,15 @@ | ||
| 63 | 63 | ||
| 64 | + <div class="palm-section-divider"></div> | ||
| 65 | + | ||
| 64 | <div class="palm-section-divider"></div> | ||
| 65 | |||
| 66 | 66 | + <div class="palm-row" id="dm_data" x-mojo-tap-highlight='momentary'><div class="palm-row-wrapper"> | |
| 67 | 67 | + <div class="title truncating-text"> | |
| 68 | 68 | + <div class="label right" id="dataStatus"> </div> | |
| … | … | ||
| 70 | 70 | + </div> | |
| 71 | 71 | + </div></div> | |
| 72 | 72 | + | |
| 73 | <div class="palm-section-divider"></div> | ||
| 74 | |||
| 73 | + <div class="palm-section-divider"></div> | ||
| 74 | + | ||
| 75 | 75 | <div id="dm_airplanemode" class="palm-row last menu-end" x-mojo-tap-highlight='momentary'><div class="palm-row-wrapper"> | |
| 76 | <div id="dm_airplanemode_status" class="title truncating-text"> | ||
| 77 | </div> |
|   | |||
| 1 | Name: Flashlight in Device Menu | ||
| 2 | Version: 1.3.5-1 | ||
| 3 | Author: Jason Robitaille | ||
| 4 | Description: Adds a flashlight toggle to the device menu. Requires SysToolsMgr Service. (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 | @@ -122,6 +122,7 @@ | ||
| 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 2a42b1a..efbfca6 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 | @@ -122,6 +122,7 @@ var DevicemenuAssistant = Class.create({ | ||
| 9 | 6 | this.controller.get('bt_radio').addEventListener(Mojo.Event.tap, this.toggleBTRadio.bindAsEventListener(this)); | |
| 10 | 7 | this.controller.get('bt_pref').addEventListener(Mojo.Event.tap,this.handleBluetoothLaunch.bindAsEventListener(this)); | |
| 11 | 8 | this.controller.get('wifi_pref').addEventListener(Mojo.Event.tap,this.handleWiFiLaunch.bindAsEventListener(this)); | |
| … | … | ||
| 10 | 10 | this.controller.get('scrim').addEventListener(Mojo.Event.tap, this.toggleDeviceMenu.bindAsEventListener(this)); | |
| 11 | 11 | //Close the App because this is a first launch. | |
| 12 | 12 | this.toggleDeviceMenu(); | |
| 13 | @@ -177,6 +178,29 @@ | ||
| 14 | } | ||
| 13 | @@ -178,6 +179,31 @@ var DevicemenuAssistant = Class.create({ | ||
| 15 | 14 | this.apModeInProgress = false; | |
| 16 | 15 | }, | |
| 17 | + | ||
| 16 | |||
| 18 | 17 | + toggleFlash: function() { | |
| 19 | 18 | + if(this.flashVal==0) { | |
| 20 | 19 | + this.flashVal = 100; | |
| … | … | ||
| 25 | 25 | + parameters: { | |
| 26 | 26 | + value: this.flashVal | |
| 27 | 27 | + }, | |
| 28 | + onSuccess: function() { this.setFlashLabel(); }.bind(this) | ||
| 28 | + onSuccess: function() { | ||
| 29 | + this.setFlashLabel(); | ||
| 30 | + }.bind(this) | ||
| 29 | 31 | + }); | |
| 30 | 32 | + }, | |
| 31 | 33 | + | |
| … | … | ||
| 38 | 38 | + this.controller.get('flashStatus').innerText = "On"; | |
| 39 | 39 | + } | |
| 40 | 40 | + }, | |
| 41 | |||
| 41 | + | ||
| 42 | 42 | toggleBTRadio: function(event) { | |
| 43 | 43 | if(RadioState.get('bluetooth')) { | |
| 44 | @@ -956,6 +980,16 @@ | ||
| 44 | BtService.radiooff(null,null); | ||
| 45 | @@ -987,6 +1013,19 @@ var DevicemenuAssistant = Class.create({ | ||
| 45 | 46 | ); | |
| 46 | 47 | } | |
| 47 | 48 | ||
| … | … | ||
| 53 | 53 | + onSuccess: function(response) { | |
| 54 | 54 | + this.flashVal = response.value; | |
| 55 | 55 | + this.setFlashLabel(); | |
| 56 | + }.bind(this), | ||
| 57 | + onFailure: function(err) { | ||
| 58 | + this.controller.get('flashStatus').innerText = "Error"; | ||
| 56 | 59 | + }.bind(this) | |
| 57 | 60 | + }); | |
| 58 | 61 | + | |
| 59 | 62 | //animate the scrim onto the scene and then the submenu | |
| 60 | 63 | Mojo.Animation.animateStyle(this.scrim, 'opacity', 'bezier', { | |
| 61 | 64 | from: 0, | |
| 62 | --- .orig/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html | ||
| 63 | +++ /usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html | ||
| 64 | @@ -89,6 +89,15 @@ | ||
| 65 | |||
| 66 | </div> | ||
| 65 | diff --git a/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html b/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html | ||
| 66 | index 933094e..9cfb512 100644 | ||
| 67 | --- a/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html | ||
| 68 | +++ b/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html | ||
| 69 | @@ -94,6 +94,15 @@ | ||
| 67 | 70 | ||
| 68 | + <div class="palm-section-divider"></div> | ||
| 69 | + | ||
| 71 | <div class="palm-section-divider"></div> | ||
| 72 | |||
| 70 | 73 | + <div class="palm-row" id="dm_flash"><div class="palm-row-wrapper"> | |
| 71 | 74 | + <div class="title truncating-text"> | |
| 72 | 75 | + <div class="label right" id="flashStatus"> </div> | |
| … | … | ||
| 77 | 77 | + </div> | |
| 78 | 78 | + </div></div> | |
| 79 | 79 | + | |
| 80 | <div class="palm-section-divider"></div> | ||
| 81 | |||
| 80 | + <div class="palm-section-divider"></div> | ||
| 81 | + | ||
| 82 | 82 | <div id="dm_airplanemode" class="palm-row last menu-end" x-mojo-tap-highlight='momentary'><div class="palm-row-wrapper"> | |
| 83 | <div id="dm_airplanemode_status" class="title truncating-text"> | ||
| 84 | </div> |
|   | |||
| 1 | Name: GPS in Device Menu | ||
| 2 | Version: 1.2.1-1 | ||
| 3 | Author: Jason Robitaille | ||
| 4 | Description: Adds a GPS toggle to 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 | @@ -122,6 +122,7 @@ | ||
| 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 2a42b1a..508c795 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 | @@ -122,6 +122,7 @@ var DevicemenuAssistant = Class.create({ | ||
| 9 | 6 | this.controller.get('bt_radio').addEventListener(Mojo.Event.tap, this.toggleBTRadio.bindAsEventListener(this)); | |
| 10 | 7 | this.controller.get('bt_pref').addEventListener(Mojo.Event.tap,this.handleBluetoothLaunch.bindAsEventListener(this)); | |
| 11 | 8 | this.controller.get('wifi_pref').addEventListener(Mojo.Event.tap,this.handleWiFiLaunch.bindAsEventListener(this)); | |
| … | … | ||
| 10 | 10 | this.controller.get('scrim').addEventListener(Mojo.Event.tap, this.toggleDeviceMenu.bindAsEventListener(this)); | |
| 11 | 11 | //Close the App because this is a first launch. | |
| 12 | 12 | this.toggleDeviceMenu(); | |
| 13 | @@ -177,6 +178,25 @@ | ||
| 14 | } | ||
| 13 | @@ -178,6 +179,25 @@ var DevicemenuAssistant = Class.create({ | ||
| 15 | 14 | this.apModeInProgress = false; | |
| 16 | 15 | }, | |
| 17 | + | ||
| 16 | |||
| 18 | 17 | + toggleGPS: function(event) { | |
| 19 | 18 | + this.gpsEnabled = !this.gpsEnabled; | |
| 20 | 19 | + this.controller.serviceRequest('palm://com.palm.location', { | |
| … | … | ||
| 32 | 32 | + this.controller.get('gpsStatus').innerText = "Off"; | |
| 33 | 33 | + } | |
| 34 | 34 | + }, | |
| 35 | |||
| 35 | + | ||
| 36 | 36 | toggleBTRadio: function(event) { | |
| 37 | 37 | if(RadioState.get('bluetooth')) { | |
| 38 | @@ -956,6 +976,15 @@ | ||
| 38 | BtService.radiooff(null,null); | ||
| 39 | @@ -987,6 +1007,15 @@ var DevicemenuAssistant = Class.create({ | ||
| 39 | 40 | ); | |
| 40 | 41 | } | |
| 41 | 42 | ||
| … | … | ||
| 52 | 52 | //animate the scrim onto the scene and then the submenu | |
| 53 | 53 | Mojo.Animation.animateStyle(this.scrim, 'opacity', 'bezier', { | |
| 54 | 54 | from: 0, | |
| 55 | --- .orig/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html | ||
| 56 | +++ /usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html | ||
| 57 | @@ -89,6 +89,15 @@ | ||
| 58 | |||
| 59 | </div> | ||
| 55 | diff --git a/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html b/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html | ||
| 56 | index 933094e..ba400f6 100644 | ||
| 57 | --- a/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html | ||
| 58 | +++ b/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html | ||
| 59 | @@ -94,6 +94,15 @@ | ||
| 60 | 60 | ||
| 61 | + <div class="palm-section-divider"></div> | ||
| 62 | + | ||
| 61 | <div class="palm-section-divider"></div> | ||
| 62 | |||
| 63 | 63 | + <div class="palm-row" id="dm_gps" x-mojo-tap-highlight='momentary'><div class="palm-row-wrapper"> | |
| 64 | 64 | + <div class="title truncating-text"> | |
| 65 | 65 | + <div class="label right" id="gpsStatus"> </div> | |
| … | … | ||
| 67 | 67 | + </div> | |
| 68 | 68 | + </div></div> | |
| 69 | 69 | + | |
| 70 | <div class="palm-section-divider"></div> | ||
| 71 | |||
| 70 | + <div class="palm-section-divider"></div> | ||
| 71 | + | ||
| 72 | 72 | <div id="dm_airplanemode" class="palm-row last menu-end" x-mojo-tap-highlight='momentary'><div class="palm-row-wrapper"> | |
| 73 | <div id="dm_airplanemode_status" class="title truncating-text"> | ||
| 74 | </div> |
|   | |||
| 1 | Name: Roam-Only in Device Menu | ||
| 2 | Version: 1.2.1-1 | ||
| 3 | Author: Jason Robitaille | ||
| 4 | Description: Adds a roam-only toggle to 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 | @@ -125,3 +125,4 @@ | ||
| 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 2a42b1a..eff6bd9 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 | @@ -123,6 +123,7 @@ var DevicemenuAssistant = Class.create({ | ||
| 6 | this.controller.get('bt_pref').addEventListener(Mojo.Event.tap,this.handleBluetoothLaunch.bindAsEventListener(this)); | ||
| 7 | this.controller.get('wifi_pref').addEventListener(Mojo.Event.tap,this.handleWiFiLaunch.bindAsEventListener(this)); | ||
| 9 | 8 | this.controller.get('scrim').addEventListener(Mojo.Event.tap, this.toggleDeviceMenu.bindAsEventListener(this)); | |
| 10 | 9 | + this.controller.get('dm_roam').addEventListener(Mojo.Event.tap, this.toggleRoam.bindAsEventListener(this)); | |
| 11 | 10 | //Close the App because this is a first launch. | |
| 12 | 11 | this.toggleDeviceMenu(); | |
| 13 | @@ -222,6 +223,30 @@ | ||
| 12 | }, | ||
| 13 | @@ -230,6 +231,30 @@ var DevicemenuAssistant = Class.create({ | ||
| 14 | 14 | this.btdeviceList.clear(); | |
| 15 | 15 | }, | |
| 16 | 16 | ||
| … | … | ||
| 41 | 41 | /* | |
| 42 | 42 | * Handles the Bluetooth Device connect or disconnect when tapped on the device. | |
| 43 | 43 | */ | |
| 44 | @@ -944,2 +969,10 @@ | ||
| 44 | @@ -973,6 +998,14 @@ var DevicemenuAssistant = Class.create({ | ||
| 45 | } | ||
| 46 | else { | ||
| 45 | 47 | this.isVisible = true; | |
| 46 | 48 | + this.controller.serviceRequest('palm://com.palm.telephony', { | |
| 47 | 49 | + method: 'roamModeQuery', | |
| … | … | ||
| 54 | 54 | + }.bind(this) | |
| 55 | 55 | + }); | |
| 56 | 56 | var date = new Date(); | |
| 57 | --- .orig/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html | ||
| 58 | +++ /usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html | ||
| 59 | @@ -89,6 +89,15 @@ | ||
| 60 | |||
| 61 | </div> | ||
| 57 | this.controller.get('dm_date').innerHTML = Mojo.Format.formatDate(date,{date:'EEE '}) + Mojo.Format.formatDate(date,{date:'long'}); | ||
| 58 | this.controller.stageController.activate(); | ||
| 59 | diff --git a/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html b/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html | ||
| 60 | index 933094e..968977b 100644 | ||
| 61 | --- a/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html | ||
| 62 | +++ b/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html | ||
| 63 | @@ -94,6 +94,15 @@ | ||
| 62 | 64 | ||
| 63 | + <div class="palm-section-divider"></div> | ||
| 64 | + | ||
| 65 | <div class="palm-section-divider"></div> | ||
| 66 | |||
| 65 | 67 | + <div class="palm-row" id="dm_roam" x-mojo-tap-highlight='momentary'><div class="palm-row-wrapper"> | |
| 66 | 68 | + <div class="title truncating-text"> | |
| 67 | 69 | + <div class="label right" id="roamStatus"> </div> | |
| … | … | ||
| 71 | 71 | + </div> | |
| 72 | 72 | + </div></div> | |
| 73 | 73 | + | |
| 74 | <div class="palm-section-divider"></div> | ||
| 75 | |||
| 74 | + <div class="palm-section-divider"></div> | ||
| 75 | + | ||
| 76 | 76 | <div id="dm_airplanemode" class="palm-row last menu-end" x-mojo-tap-highlight='momentary'><div class="palm-row-wrapper"> | |
| 77 | <div id="dm_airplanemode_status" class="title truncating-text"> | ||
| 78 | </div> |
|   | |||
| 1 | Name: YouTube URL Copy | ||
| 2 | Version: 1.2.1-1 | ||
| 3 | Author: Jason Robitaille | ||
| 4 | Description: Adds the ability to copy a video's URL to the clipboard in the YouTube app (MIT license) | ||
| 5 | |||
| 6 | --- .orig/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js | ||
| 7 | +++ /usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js | ||
| 8 | @@ -76,7 +76,11 @@ | ||
| 9 | params: {messageText: this.video.shareLink} | ||
| 1 | diff --git a/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js b/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js | ||
| 2 | index 99701ce..cccfde7 100644 | ||
| 3 | --- a/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js | ||
| 4 | +++ b/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js | ||
| 5 | @@ -77,6 +77,10 @@ var VideoAssistant = Class.create({ | ||
| 10 | 6 | }}) | |
| 11 | 7 | event.stop(event); | |
| 12 | - } | ||
| 13 | + } | ||
| 8 | } | ||
| 14 | 9 | + else if (event.command == 'clipboard' && this.video.shareLink && this.video.shareLink != "") { | |
| 15 | 10 | + this.controller.stageController.setClipboard(this.video.shareLink); | |
| 16 | 11 | + event.stop(event); | |
| … | … | ||
| 13 | 13 | else { | |
| 14 | 14 | AppAssistant.common.handleCommand(event); | |
| 15 | 15 | } | |
| 16 | @@ -92,7 +92,8 @@ | ||
| 16 | @@ -92,7 +96,8 @@ var VideoAssistant = Class.create({ | ||
| 17 | 17 | shareMenuModel: {label: $L('Share'), | |
| 18 | 18 | items: [ | |
| 19 | 19 | {label: $L('Email'), command:'email'}, |
|   | |||
| 1 | Name: Hyperlinks in Description | ||
| 2 | Version: 1.2.1-1 | ||
| 3 | Author: Jason Robitaille | ||
| 4 | Description: Creates hyperlinks for text URLs in YouTube video descriptions (MIT license) | ||
| 5 | |||
| 6 | --- .orig/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js | ||
| 7 | +++ /usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js | ||
| 8 | @@ -20,6 +20,24 @@ | ||
| 1 | diff --git a/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js b/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js | ||
| 2 | index 99701ce..d972344 100644 | ||
| 3 | --- a/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js | ||
| 4 | +++ b/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js | ||
| 5 | @@ -20,6 +20,24 @@ var VideoAssistant = Class.create({ | ||
| 9 | 6 | this.controller.setupWidget('share-menu', undefined, this.shareMenuModel); | |
| 10 | 7 | this.controller.setupWidget(Mojo.Menu.commandMenu, {menuClass: "no-fade"}, this.cmdMenuModel); | |
| 11 | 8 | ||
| … | … | ||
| 27 | 27 | // render video details template | |
| 28 | 28 | var info = Mojo.View.render({object: this.video, template: 'video/video-info'}); | |
| 29 | 29 | $('video_info').update(info); | |
| 30 | --- .orig/usr/palm/applications/com.palm.app.youtube/app/views/video/video-info.html | ||
| 31 | +++ /usr/palm/applications/com.palm.app.youtube/app/views/video/video-info.html | ||
| 30 | diff --git a/usr/palm/applications/com.palm.app.youtube/app/views/video/video-info.html b/usr/palm/applications/com.palm.app.youtube/app/views/video/video-info.html | ||
| 31 | index c2f1d9c..f33a4dc 100644 | ||
| 32 | --- a/usr/palm/applications/com.palm.app.youtube/app/views/video/video-info.html | ||
| 33 | +++ b/usr/palm/applications/com.palm.app.youtube/app/views/video/video-info.html | ||
| 32 | 34 | @@ -14,5 +14,5 @@ | |
| 33 | 35 | <div id="videoName" class="video-name">#{title}</div> | |
| 34 | 36 |
|   | |||
| 1 | Name: YouTube Video Downloads | ||
| 2 | Version: 1.3.5-2 | ||
| 3 | Author: Jason Robitaille | ||
| 4 | Description: Adds a download option for videos in the YouTube app (MIT license) | ||
| 5 | |||
| 6 | --- .orig/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js | ||
| 7 | +++ /usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js | ||
| 8 | @@ -16,6 +16,8 @@ | ||
| 1 | diff --git a/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js b/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js | ||
| 2 | index 99701ce..15c6f66 100644 | ||
| 3 | --- a/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js | ||
| 4 | +++ b/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js | ||
| 5 | @@ -16,6 +16,8 @@ var VideoAssistant = Class.create({ | ||
| 9 | 6 | this.cmdMenuModel = {items: [{label: $L('More'), submenu:'more-menu'}, | |
| 10 | 7 | {label: $L('Share'), submenu:'share-menu'}]}; | |
| 11 | 8 | ||
| … | … | ||
| 11 | 11 | this.controller.setupWidget('more-menu', undefined, this.moreMenuModel); | |
| 12 | 12 | this.controller.setupWidget('share-menu', undefined, this.shareMenuModel); | |
| 13 | 13 | this.controller.setupWidget(Mojo.Menu.commandMenu, {menuClass: "no-fade"}, this.cmdMenuModel); | |
| 14 | @@ -53,6 +55,53 @@ | ||
| 14 | @@ -53,6 +55,53 @@ var VideoAssistant = Class.create({ | ||
| 15 | 15 | } | |
| 16 | 16 | event.stop(event); | |
| 17 | 17 | } | |
| … | … | ||
| 65 | 65 | else if (event.command == 'related') { | |
| 66 | 66 | if (this.video.related_url && this.video.related_url != "") { | |
| 67 | 67 | Mojo.Controller.stageController.pushScene("search", this.video.related_url, "related"); | |
| 68 | @@ -86,7 +135,8 @@ | ||
| 68 | @@ -86,7 +135,8 @@ var VideoAssistant = Class.create({ | ||
| 69 | 69 | moreMenuModel: {label: $L('More'), | |
| 70 | 70 | items: [ | |
| 71 | 71 | {label: $L('More from This Author'), command:'more'}, |
|   | |||
| 1 | Name: YouTube Video Downloads | ||
| 2 | Version: 1.3.5-2 | ||
| 3 | Author: Jason Robitaille | ||
| 4 | Description: Adds a download option for videos in the YouTube app (MIT license) | ||
| 5 | |||
| 6 | --- .orig/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js | ||
| 7 | +++ /usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js | ||
| 8 | @@ -16,6 +16,8 @@ | ||
| 1 | diff --git a/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js b/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js | ||
| 2 | index 99701ce..278334a 100644 | ||
| 3 | --- a/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js | ||
| 4 | +++ b/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js | ||
| 5 | @@ -16,6 +16,8 @@ var VideoAssistant = Class.create({ | ||
| 9 | 6 | this.cmdMenuModel = {items: [{label: $L('More'), submenu:'more-menu'}, | |
| 10 | 7 | {label: $L('Share'), submenu:'share-menu'}]}; | |
| 11 | 8 | ||
| … | … | ||
| 11 | 11 | this.controller.setupWidget('more-menu', undefined, this.moreMenuModel); | |
| 12 | 12 | this.controller.setupWidget('share-menu', undefined, this.shareMenuModel); | |
| 13 | 13 | this.controller.setupWidget(Mojo.Menu.commandMenu, {menuClass: "no-fade"}, this.cmdMenuModel); | |
| 14 | @@ -53,6 +55,53 @@ | ||
| 14 | @@ -53,6 +55,53 @@ var VideoAssistant = Class.create({ | ||
| 15 | 15 | } | |
| 16 | 16 | event.stop(event); | |
| 17 | 17 | } | |
| … | … | ||
| 65 | 65 | else if (event.command == 'related') { | |
| 66 | 66 | if (this.video.related_url && this.video.related_url != "") { | |
| 67 | 67 | Mojo.Controller.stageController.pushScene("search", this.video.related_url, "related"); | |
| 68 | @@ -86,7 +135,8 @@ | ||
| 68 | @@ -86,7 +135,8 @@ var VideoAssistant = Class.create({ | ||
| 69 | 69 | moreMenuModel: {label: $L('More'), | |
| 70 | 70 | items: [ | |
| 71 | 71 | {label: $L('More from This Author'), command:'more'}, |

