Commit b30af2f64cfd7633316ad53bfe13fc033d351bd6
- Diff rendering mode:
- inline
- side by side
|   | |||
| 1 | diff --git a/usr/palm/applications/com.palm.app.browser/app/controllers/global_code.js b/usr/palm/applications/com.palm.app.browser/app/controllers/global_code.js | ||
| 2 | index b2c8848..08d56ac 100644 | ||
| 3 | --- a/usr/palm/applications/com.palm.app.browser/app/controllers/global_code.js | ||
| 4 | +++ b/usr/palm/applications/com.palm.app.browser/app/controllers/global_code.js | ||
| 5 | @@ -1101,10 +1101,13 @@ HistoryAssistant.prototype.setup = function() { | ||
| 6 | this.controller.setupWidget('historyList', { | ||
| 7 | itemTemplate:'history/history-entry', | ||
| 8 | listTemplate:'history/history-container', | ||
| 9 | - itemsCallback:this._itemsCallback.bind(this) | ||
| 10 | + itemsCallback:this._itemsCallback.bind(this), | ||
| 11 | + swipeToDelete:true, | ||
| 12 | + autoconfirmDelete:true | ||
| 13 | }); | ||
| 14 | |||
| 15 | this._onListSelectionHandler = this._onListSelection.bindAsEventListener(this); | ||
| 16 | + this._onListDeleteHandler = this._onListDelete.bindAsEventListener(this); | ||
| 17 | this._historyListWidget = this.controller.get('historyList'); | ||
| 18 | |||
| 19 | var appMenuModel = { | ||
| 20 | @@ -1130,6 +1133,7 @@ HistoryAssistant.prototype.cleanup = function() { | ||
| 21 | HistoryAssistant.prototype.activate = function() { | ||
| 22 | |||
| 23 | this._historyListWidget.addEventListener(Mojo.Event.listTap, this._onListSelectionHandler); | ||
| 24 | + this._historyListWidget.addEventListener(Mojo.Event.listDelete, this._onListDeleteHandler); | ||
| 25 | |||
| 26 | // On an activation for a re-render of the contents. | ||
| 27 | var len = this._historyListWidget.mojo.getLength(); | ||
| 28 | @@ -1139,6 +1143,7 @@ HistoryAssistant.prototype.activate = function() { | ||
| 29 | HistoryAssistant.prototype.deactivate = function() { | ||
| 30 | |||
| 31 | Mojo.Event.stopListening(this._historyListWidget, Mojo.Event.listTap, this._onListSelectionHandler); | ||
| 32 | + Mojo.Event.stopListening(this._historyListWidget, Mojo.Event.listDelete, this._onListDeleteHandler); | ||
| 33 | }; | ||
| 34 | |||
| 35 | /** | ||
| 36 | @@ -1218,6 +1223,10 @@ HistoryAssistant.prototype._onListSelection = function(event) { | ||
| 37 | }); | ||
| 38 | }; | ||
| 39 | |||
| 40 | +HistoryAssistant.prototype._onListDelete = function(event) { | ||
| 41 | + this.historyStore.deleteHistoryEntry(event.item.url, function() {}, function() {}); | ||
| 42 | +}; | ||
| 43 | + | ||
| 44 | /** | ||
| 45 | * handle a menu command. | ||
| 46 | */ | ||
| 47 | @@ -7349,6 +7358,15 @@ function HistoryStore(options, onSuccess, onFailure) { | ||
| 48 | } | ||
| 49 | } | ||
| 50 | |||
| 51 | +HistoryStore.prototype._deleteHistoryEntry = function(url, onSuccess, onFailure, transaction) { | ||
| 52 | + this._executeSql(transaction, onSuccess, onFailure, | ||
| 53 | + "DELETE FROM 'history' WHERE url = ?", [url] ); | ||
| 54 | +}; | ||
| 55 | + | ||
| 56 | +HistoryStore.prototype.deleteHistoryEntry = function(url, onSuccess, onFailure) { | ||
| 57 | + this.database.transaction(this._deleteHistoryEntry.bind(this, url, onSuccess, onFailure)); | ||
| 58 | +}; | ||
| 59 | + | ||
| 60 | /** @private */ | ||
| 61 | HistoryStore.prototype._addHistoryEntry = function(url, title, date, onSuccess, onFailure, transaction) { | ||
| 62 |
|   | |||
| 1 | diff --git a/usr/palm/applications/com.palm.app.browser/app/controllers/global_code.js b/usr/palm/applications/com.palm.app.browser/app/controllers/global_code.js | ||
| 2 | index b2c8848..133bc7a 100644 | ||
| 3 | --- a/usr/palm/applications/com.palm.app.browser/app/controllers/global_code.js | ||
| 4 | +++ b/usr/palm/applications/com.palm.app.browser/app/controllers/global_code.js | ||
| 5 | @@ -1101,10 +1101,13 @@ HistoryAssistant.prototype.setup = function() { | ||
| 6 | this.controller.setupWidget('historyList', { | ||
| 7 | itemTemplate:'history/history-entry', | ||
| 8 | listTemplate:'history/history-container', | ||
| 9 | - itemsCallback:this._itemsCallback.bind(this) | ||
| 10 | + itemsCallback:this._itemsCallback.bind(this), | ||
| 11 | + swipeToDelete:true, | ||
| 12 | + autoconfirmDelete:false | ||
| 13 | }); | ||
| 14 | |||
| 15 | this._onListSelectionHandler = this._onListSelection.bindAsEventListener(this); | ||
| 16 | + this._onListDeleteHandler = this._onListDelete.bindAsEventListener(this); | ||
| 17 | this._historyListWidget = this.controller.get('historyList'); | ||
| 18 | |||
| 19 | var appMenuModel = { | ||
| 20 | @@ -1130,6 +1133,7 @@ HistoryAssistant.prototype.cleanup = function() { | ||
| 21 | HistoryAssistant.prototype.activate = function() { | ||
| 22 | |||
| 23 | this._historyListWidget.addEventListener(Mojo.Event.listTap, this._onListSelectionHandler); | ||
| 24 | + this._historyListWidget.addEventListener(Mojo.Event.listDelete, this._onListDeleteHandler); | ||
| 25 | |||
| 26 | // On an activation for a re-render of the contents. | ||
| 27 | var len = this._historyListWidget.mojo.getLength(); | ||
| 28 | @@ -1139,6 +1143,7 @@ HistoryAssistant.prototype.activate = function() { | ||
| 29 | HistoryAssistant.prototype.deactivate = function() { | ||
| 30 | |||
| 31 | Mojo.Event.stopListening(this._historyListWidget, Mojo.Event.listTap, this._onListSelectionHandler); | ||
| 32 | + Mojo.Event.stopListening(this._historyListWidget, Mojo.Event.listDelete, this._onListDeleteHandler); | ||
| 33 | }; | ||
| 34 | |||
| 35 | /** | ||
| 36 | @@ -1218,6 +1223,10 @@ HistoryAssistant.prototype._onListSelection = function(event) { | ||
| 37 | }); | ||
| 38 | }; | ||
| 39 | |||
| 40 | +HistoryAssistant.prototype._onListDelete = function(event) { | ||
| 41 | + this.historyStore.deleteHistoryEntry(event.item.url, function() {}, function() {}); | ||
| 42 | +}; | ||
| 43 | + | ||
| 44 | /** | ||
| 45 | * handle a menu command. | ||
| 46 | */ | ||
| 47 | @@ -7349,6 +7358,15 @@ function HistoryStore(options, onSuccess, onFailure) { | ||
| 48 | } | ||
| 49 | } | ||
| 50 | |||
| 51 | +HistoryStore.prototype._deleteHistoryEntry = function(url, onSuccess, onFailure, transaction) { | ||
| 52 | + this._executeSql(transaction, onSuccess, onFailure, | ||
| 53 | + "DELETE FROM 'history' WHERE url = ?", [url] ); | ||
| 54 | +}; | ||
| 55 | + | ||
| 56 | +HistoryStore.prototype.deleteHistoryEntry = function(url, onSuccess, onFailure) { | ||
| 57 | + this.database.transaction(this._deleteHistoryEntry.bind(this, url, onSuccess, onFailure)); | ||
| 58 | +}; | ||
| 59 | + | ||
| 60 | /** @private */ | ||
| 61 | HistoryStore.prototype._addHistoryEntry = function(url, title, date, onSuccess, onFailure, transaction) { | ||
| 62 |
|   | |||
| 1 | Modifies the month controller to show allday events in the month scene by changing the background of the cell to a light blue. | ||
| 2 | Index: /usr/palm/applications/com.palm.app.calendar/app/controllers/month-assistant.js | ||
| 3 | =================================================================== | ||
| 4 | --- .orig/usr/palm/applications/com.palm.app.calendar/app/controllers/month-assistant.js | ||
| 5 | +++ /usr/palm/applications/com.palm.app.calendar/app/controllers/month-assistant.js | ||
| 6 | @@ -25,11 +25,25 @@ var MonthAssistant = Class.create({ | ||
| 7 | this.scrollerModel = { scrollbars: false, mode: "vertical-snap", snapIndex: 0, snapElements: { y: [] } }; | ||
| 8 | }, | ||
| 9 | |||
| 10 | + fullEvts: null, | ||
| 11 | + | ||
| 12 | setupMonth: function(startDate, endDate, callbackfn) | ||
| 13 | { | ||
| 14 | + getCalendarService().getEvents(getCurrentCal(),startDate.getTime(), endDate.getTime(), | ||
| 15 | + this.getEventsCallback.bind(this), | ||
| 16 | + this.controller, | ||
| 17 | + this.getEventsFailCallback, | ||
| 18 | + {useSlices: true} | ||
| 19 | + ); | ||
| 20 | getCalendarService().getBusyDays(getCurrentCal(), startDate.getTime(), endDate.getTime(), callbackfn, this.controller); | ||
| 21 | }, | ||
| 22 | - | ||
| 23 | + | ||
| 24 | + getEventsCallback: function(resp) | ||
| 25 | + { | ||
| 26 | +Mojo.Log.info('month-assistant:getEventsCallback'); | ||
| 27 | + this.fullEvts = resp.days; | ||
| 28 | + }, | ||
| 29 | + | ||
| 30 | buildViewHeader: function() | ||
| 31 | { | ||
| 32 | //Mojo.Log.info("month-assistant: buildViewHeader"); | ||
| 33 | @@ -342,6 +356,10 @@ var MonthAssistant = Class.create({ | ||
| 34 | var daylen = days.length - 1; // We get back more days of info that we want - 1 more in fact, because its inclusive, rather than exclusive | ||
| 35 | for (var d = 0; d < daylen; d++) | ||
| 36 | { | ||
| 37 | + if (this.fullEvts[d].allDayEvents.length > 0) | ||
| 38 | + { | ||
| 39 | + dayCell.style.backgroundColor = '#99ccff'; | ||
| 40 | + } | ||
| 41 | var day = this._token2state(days.charCodeAt(d)); | ||
| 42 | |||
| 43 | var child = dayCell.firstChild; |
|   | |||
| 1 | diff --git a/usr/palm/applications/com.palm.app.camera/app/controllers/capture-assistant.js b/usr/palm/applications/com.palm.app.camera/app/controllers/capture-assistant.js | ||
| 2 | index 118e532..bae4b1d 100644 | ||
| 3 | --- a/usr/palm/applications/com.palm.app.camera/app/controllers/capture-assistant.js | ||
| 4 | +++ b/usr/palm/applications/com.palm.app.camera/app/controllers/capture-assistant.js | ||
| 5 | @@ -78,6 +78,10 @@ CaptureAssistant = Class.create({ | ||
| 6 | this.controller.get('flashButtonState').observe(Mojo.Event.tap, function(){ | ||
| 7 | this._handleFlashButton(); | ||
| 8 | }.bind(this)); | ||
| 9 | + | ||
| 10 | + this.controller.get('shutterSoundButtonState').observe(Mojo.Event.tap, function(){ | ||
| 11 | + this._handleShutterSoundButton(); | ||
| 12 | + }.bind(this)); | ||
| 13 | |||
| 14 | this.onKeyPressHandler = this.onKeyPress.bindAsEventListener(this); | ||
| 15 | Mojo.listen(this.controller.sceneElement, Mojo.Event.keypress, this.onKeyPressHandler); | ||
| 16 | @@ -137,7 +141,12 @@ CaptureAssistant = Class.create({ | ||
| 17 | if (undefined === this.flashState){ | ||
| 18 | var prefFlashState = +this.cameraControl.prefs[CameraControl.PREFS.FLASH]; | ||
| 19 | this.setFlashState(prefFlashState); | ||
| 20 | - } | ||
| 21 | + } | ||
| 22 | + | ||
| 23 | + if (undefined === this.shutterSoundState){ | ||
| 24 | + var prefShutterSoundState = this.cameraControl.prefs[CameraControl.PREFS.SOUNDS]; | ||
| 25 | + this.setShutterSoundState(prefShutterSoundState); | ||
| 26 | + } | ||
| 27 | |||
| 28 | try { | ||
| 29 | var initialOrientation = PalmSystem.screenOrientation; | ||
| 30 | @@ -600,6 +609,45 @@ CaptureAssistant = Class.create({ | ||
| 31 | |||
| 32 | llog("Set Flash Mode to "+camera.flash); | ||
| 33 | }, | ||
| 34 | + | ||
| 35 | + /** | ||
| 36 | + * Click handler for the shutter sound button. | ||
| 37 | + * | ||
| 38 | + * @param {Event} event The click event | ||
| 39 | + */ | ||
| 40 | + _handleShutterSoundButton: function(event){ | ||
| 41 | + if (this.shutterSoundState == 'enabled'){ | ||
| 42 | + this.shutterSoundState = 'disabled'; | ||
| 43 | + } | ||
| 44 | + else { | ||
| 45 | + this.shutterSoundState = 'enabled'; | ||
| 46 | + } | ||
| 47 | + | ||
| 48 | + this.setShutterSoundState(this.shutterSoundState); | ||
| 49 | + }, | ||
| 50 | + | ||
| 51 | + setShutterSoundState: function(state){ | ||
| 52 | + if ((state != 'disabled') && (state != 'enabled')) { | ||
| 53 | + /* | ||
| 54 | + var elemC = this.controller.get('sagar_console'); | ||
| 55 | + if (elemC) { | ||
| 56 | + elemC.innerHTML = state; | ||
| 57 | + } | ||
| 58 | + */ | ||
| 59 | + llog("Requested shutter sound state is out of range ("+state+")"); | ||
| 60 | + return; | ||
| 61 | + } | ||
| 62 | + | ||
| 63 | + this.shutterSoundState = state; | ||
| 64 | + CameraPrefs.updatePref(this.cameraControl.prefs, CameraControl.PREFS.SOUNDS, state); | ||
| 65 | + | ||
| 66 | + if (this.shutterSoundState == 'enabled') { | ||
| 67 | + this.controller.get('shutterSoundButtonState').className = "shutter-sound-button shutter-sound-on"; | ||
| 68 | + } | ||
| 69 | + else if (this.shutterSoundState == 'disabled') { | ||
| 70 | + this.controller.get('shutterSoundButtonState').className = "shutter-sound-button shutter-sound-off"; | ||
| 71 | + } | ||
| 72 | + }, | ||
| 73 | |||
| 74 | /** | ||
| 75 | * Handler for click of photoroll button. | ||
| 76 | diff --git a/usr/palm/applications/com.palm.app.camera/app/views/capture/capture-scene.html b/usr/palm/applications/com.palm.app.camera/app/views/capture/capture-scene.html | ||
| 77 | index a586aba..e8243d2 100644 | ||
| 78 | --- a/usr/palm/applications/com.palm.app.camera/app/views/capture/capture-scene.html | ||
| 79 | +++ b/usr/palm/applications/com.palm.app.camera/app/views/capture/capture-scene.html | ||
| 80 | @@ -14,6 +14,8 @@ | ||
| 81 | <div id="captureSpinner" class="capture-spinner" x-mojo-element="Spinner"></div> | ||
| 82 | <div class="capture-button" id="captureButton"> | ||
| 83 | </div> | ||
| 84 | + <div class="shutter-sound-button shutter-sound-off" id="shutterSoundButtonState"> | ||
| 85 | + </div> | ||
| 86 | <div class="flash-button flash-off" id="flashButtonState"> | ||
| 87 | </div> | ||
| 88 | </div> | ||
| 89 | @@ -23,7 +25,7 @@ | ||
| 90 | |||
| 91 | </div> | ||
| 92 | </div> | ||
| 93 | - <!-- <div id="sagar_console" style="z-index: 100; position: fixed; top: 10px; left: 10px; width: 90px; height: 20px; background-color: #000000; color: #8080ff; font-family: sans-serif; font-size: 12px; display: none;" >Hello!</div> --> | ||
| 94 | + <!--<div id="sagar_console" style="z-index: 100; position: fixed; top: 10px; left: 10px; width: 90px; height: 20px; background-color: #000000; color: #8080ff; font-family: sans-serif; font-size: 12px; display: none;" >Hello!</div> --> | ||
| 95 | <div id="gpsMeter" style="z-index: 100; position: fixed; top: 10px; right: 10px; width: 90px; height: 20px; background-color: #a0a0a0; display: none" ></div> --> | ||
| 96 | |||
| 97 | <div id="palmScrim" class="palm-scrim" style="z-index: 1001; display: none;"> | ||
| 98 | diff --git a/usr/palm/applications/com.palm.app.camera/images/menu-shutter-sound.png b/usr/palm/applications/com.palm.app.camera/images/menu-shutter-sound.png | ||
| 99 | new file mode 100644 | ||
| 100 | index 0000000000000000000000000000000000000000..8bdf2e94c31d9df827ca2f21bcdab4dca4958bbc | ||
| 101 | GIT binary patch | ||
| 102 | literal 5821 | ||
| 103 | zcmc(j^*<es_s8`WSI4gI9<H3OtEU+zrkT9r>b|(TJFa*$F~jr~!<d?`nV2@+J;P^z | ||
| 104 | z#rONec|L!A{qj1G$2oDj+Ny;3H27#}XoTu&O8WmS^lyf7asKh6SmVS$QNxr?U<ObJ | ||
| 105 | zn4h(mJ(_|Y)W)7k-Obw3Uf<r@F2HldUK$OJ%2HiP!O(x{$kZv(+}KDKS`%1*^P#4u | ||
| 106 | z^Vcf<vbw8dy5=zWt%xEkbGd?IIEeI|{4OF2p`f_A7AqGXr5goe{uY%+g3C>ct`Zwz | ||
| 107 | zong~REuEn$g|FS!x_s>JXY6-;{qD>01@htJ(mYaoQ=AI6o_%Hb2Kr^U$h-Rz`5>!> | ||
| 108 | ztB_wYZ4u&;U+2PRqkz(UH?(lrp^dQCCBeE7nH6a<<YDg#SzC~v+ycZ-TMVw9$H=Pa | ||
| 109 | zOpw7({@Bhu-k-@6g0ctv=+_>sSERdZlDF&{&d;ss65K(5YQXLiz%sL+3w=t!bNbLs | ||
| 110 | z>t}Mr9>|r*S2|O>vKX14A1IbHTI@v^#Gj>Mc7`kcq2IfU{e_aAk~PTv>fvz|sl6*# | ||
| 111 | zF#fwH^6NSP{GPHvO6VYCa$5#LRapN9Jmp9b-RJ#5|9;5(&O_WYcjS&#(fvXwsa$Z2 | ||
| 112 | zWIHKoJLo=?$!e_c;Nbh{-4lOe7hLa}#B_rbuQo`Kt<2@mY<uvNaZOfr{r2U3?bjjC | ||
| 113 | zu9i3pm9LW<-T}6dm!m9VvPkWbt?}{kngytNSn0g;qZ=qH0TnHkW^g-BBI_jURvFrE | ||
| 114 | zS{+(z_;EXcBv>Y9v>f0YszW2RDtAK^b{XQjT%pMUX^7qbJu}n8w~BfKob-keR<@pU |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}$M#v9W)(ED&t-U?cUXxc^V_C}%wN | ||
| 211 | d*oKCQ)<>9#34-RB|NBRysVi$M)hSxR{|5&c?QZ}8 | ||
| 212 | |||
| 213 | literal 0 | ||
| 214 | HcmV?d00001 | ||
| 215 | |||
| 216 | diff --git a/usr/palm/applications/com.palm.app.camera/stylesheets/camera.css b/usr/palm/applications/com.palm.app.camera/stylesheets/camera.css | ||
| 217 | index 6c7d077..ed63c68 100644 | ||
| 218 | --- a/usr/palm/applications/com.palm.app.camera/stylesheets/camera.css | ||
| 219 | +++ b/usr/palm/applications/com.palm.app.camera/stylesheets/camera.css | ||
| 220 | @@ -119,6 +119,28 @@ body.palm-default { | ||
| 221 | z-index: 20; | ||
| 222 | } | ||
| 223 | |||
| 224 | +.shutter-sound-button, | ||
| 225 | +.shutter-sound-button.shutter-sound-off { | ||
| 226 | + width: 50px; | ||
| 227 | + height: 50px; | ||
| 228 | + background: url(../images/menu-shutter-sound.png) 0 0 no-repeat; | ||
| 229 | + position: absolute; | ||
| 230 | + left: 188px; | ||
| 231 | + top: 15px; | ||
| 232 | +} | ||
| 233 | + | ||
| 234 | +.shutter-sound-button.shutter-sound-on:active { | ||
| 235 | + background-position: 0px -50px; | ||
| 236 | +} | ||
| 237 | + | ||
| 238 | +.shutter-sound-button.shutter-sound-on { | ||
| 239 | + background-position: 0px -100px; | ||
| 240 | +} | ||
| 241 | + | ||
| 242 | +.shutter-sound-button.shutter-sound-on:active { | ||
| 243 | + background-position: 0px -150px; | ||
| 244 | +} | ||
| 245 | + | ||
| 246 | /* Photo Roll */ | ||
| 247 | |||
| 248 | .photo-roll { |
email/confirm-delete.patch
(13 / 0)
|   | |||
| 1 | diff --git a/usr/palm/applications/com.palm.app.email/app/controllers/list-assistant.js b/usr/palm/applications/com.palm.app.email/app/controllers/list-assistant.js | ||
| 2 | index 74a2327..a3a8f6b 100644 | ||
| 3 | --- a/usr/palm/applications/com.palm.app.email/app/controllers/list-assistant.js | ||
| 4 | +++ b/usr/palm/applications/com.palm.app.email/app/controllers/list-assistant.js | ||
| 5 | @@ -53,7 +53,7 @@ var ListAssistant = Class.create(App.Scene, { | ||
| 6 | itemTemplate: 'list/email_entry', | ||
| 7 | itemsCallback: this.dataSource.updateOffsetAndLimit.bind(this.dataSource), | ||
| 8 | swipeToDelete: true, | ||
| 9 | - autoconfirmDelete: true, | ||
| 10 | + autoconfirmDelete: false, | ||
| 11 | uniquenessProperty: 'id', | ||
| 12 | dividerTemplate: 'list/date_separator', | ||
| 13 | dividerFunction: function(email) { return email.dateCategory; } |
|   | |||
| 1 | diff --git a/usr/palm/applications/com.palm.app.email/app/models/Email.js b/usr/palm/applications/com.palm.app.email/app/models/Email.js | ||
| 2 | index a42803b..d7ba7e7 100644 | ||
| 3 | --- a/usr/palm/applications/com.palm.app.email/app/models/Email.js | ||
| 4 | +++ b/usr/palm/applications/com.palm.app.email/app/models/Email.js | ||
| 5 | @@ -438,7 +438,7 @@ Email.setReplied = function(messageId, value) { | ||
| 6 | } | ||
| 7 | |||
| 8 | Email.kSignaturePlaceholder = "<br><br><span id='signature'></span>"; | ||
| 9 | -Email.kReplyForwardSetupElems = "<span style='color:navy'>" + Email.kSignaturePlaceholder + "<hr align='left' style='width:75%'/>"; | ||
| 10 | +Email.kReplyForwardSetupElems = "<span style='color:black'>" + Email.kSignaturePlaceholder + "<hr align='left' style='width:75%'/>"; | ||
| 11 | |||
| 12 | Email.kSubjectPrefixRe = $L("Re: "); | ||
| 13 | Email.kSubjectPrefixFw = $L("Fw: "); |
|   | |||
| 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 f343ce2..917dc52 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 | @@ -2266,7 +2266,9 @@ updateClockEveryMinute: function() { | ||
| 6 | date.setHours(12); | ||
| 7 | } | ||
| 8 | } | ||
| 9 | - $('clock').innerHTML = Mojo.Format.formatDate(date, {time: format}); | ||
| 10 | + var formedDate=Mojo.Format.formatDate(date, {date:'short'}); | ||
| 11 | + formedDate=formedDate.substr(0,formedDate.lastIndexOf('/')); | ||
| 12 | + $('clock').innerHTML = formedDate+' '+Mojo.Format.formatDate(date, {time:format}); | ||
| 13 | $('today').innerHTML = Mojo.Format.formatDate(date,{date:'short'}); | ||
| 14 | }, | ||
| 15 |
luna/add-date-to-top-bar.patch
(13 / 0)
|   | |||
| 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 f343ce2..e34708a 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 | @@ -2266,7 +2266,7 @@ updateClockEveryMinute: function() { | ||
| 6 | date.setHours(12); | ||
| 7 | } | ||
| 8 | } | ||
| 9 | - $('clock').innerHTML = Mojo.Format.formatDate(date, {time: format}); | ||
| 10 | + $('clock').innerHTML = Mojo.Format.formatDate(date, {date:'short',time: format}); | ||
| 11 | $('today').innerHTML = Mojo.Format.formatDate(date,{date:'short'}); | ||
| 12 | }, | ||
| 13 |
luna/reset-scroll.patch
(15 / 0)
|   | |||
| 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 64244b6..e68c9d2 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 | @@ -157,6 +157,10 @@ var LauncherAssistant = Class.create({ | ||
| 6 | |||
| 7 | /* keep track of which page we are on */ | ||
| 8 | onPageChange: function(event) { | ||
| 9 | + var scroller = this.getPageScroller(this.activePageIndex); | ||
| 10 | + if (scroller && scroller.mojo) { | ||
| 11 | + scroller.mojo.revealTop(0); | ||
| 12 | + } | ||
| 13 | this.activePageIndex = event.value; | ||
| 14 | this.updatePageIndicators(); | ||
| 15 | }, |
|   | |||
| 1 | diff --git a/usr/palm/applications/com.palm.app.messaging/app/controllers/chatview-assistant.js b/usr/palm/applications/com.palm.app.messaging/app/controllers/chatview-assistant.js | ||
| 2 | index 0c816ba..39d4e6c 100644 | ||
| 3 | --- a/usr/palm/applications/com.palm.app.messaging/app/controllers/chatview-assistant.js | ||
| 4 | +++ b/usr/palm/applications/com.palm.app.messaging/app/controllers/chatview-assistant.js | ||
| 5 | @@ -1750,6 +1750,32 @@ var ChatviewAssistant = Class.create({ | ||
| 6 | }, | ||
| 7 | |||
| 8 | handleTextAreaKeyUp: function(event) { | ||
| 9 | + if (event && event.ctrlKey && event.keyCode==Mojo.Char.f) { | ||
| 10 | + currentText=this.messageTextElement.value; | ||
| 11 | + oldPos = this.messageTextElement.selectionStart; | ||
| 12 | + newPos = currentText.lastIndexOf(' ',oldPos-1); | ||
| 13 | + if (newPos>-1) { | ||
| 14 | + this.messageTextElement.setSelectionRange(newPos,newPos); | ||
| 15 | + } | ||
| 16 | + else { | ||
| 17 | + this.messageTextElement.setSelectionRange(0,0); | ||
| 18 | + } | ||
| 19 | + Event.stop(event); | ||
| 20 | + } | ||
| 21 | + | ||
| 22 | + if (event && event.ctrlKey && event.keyCode==Mojo.Char.g ) { | ||
| 23 | + currentText=this.messageTextElement.value; | ||
| 24 | + oldPos = this.messageTextElement.selectionStart; | ||
| 25 | + newPos = currentText.indexOf(' ',oldPos); | ||
| 26 | + if (newPos>-1) { | ||
| 27 | + this.messageTextElement.setSelectionRange(newPos+1,newPos+1); | ||
| 28 | + } | ||
| 29 | + else { | ||
| 30 | + this.messageTextElement.setSelectionRange(currentText.length,currentText.length); | ||
| 31 | + } | ||
| 32 | + Event.stop(event); | ||
| 33 | + } | ||
| 34 | + | ||
| 35 | if (event && Mojo.Char.isEnterKey(event.keyCode)) { | ||
| 36 | this.considerForSend(); | ||
| 37 | Event.stop(event); | ||
| 38 | @@ -2115,4 +2141,4 @@ var ChatviewAssistant = Class.create({ | ||
| 39 | this.controller.sceneScroller.mojo.revealBottom(); | ||
| 40 | this.controller.sceneScroller.mojo.revealBottom(); | ||
| 41 | } | ||
| 42 | -}); | ||
| 43 | \ No newline at end of file | ||
| 44 | +}); |

