From 26864f0443597890d3da4071523dd0d894dcb8bf Mon Sep 17 00:00:00 2001 From: Piotr Dabrowski Date: Fri, 13 Sep 2013 08:54:57 +0200 Subject: [PATCH] [FileManager] updated FileManager sources Change-Id: I567fab253bde88fa194ed2820253ff17ac27a386 --- js/app.helpers.js | 3 ++- js/app.js | 11 +++++++++-- js/app.ui.js | 3 +++ 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/js/app.helpers.js b/js/app.helpers.js index 0ae7397..c7f0a16 100644 --- a/js/app.helpers.js +++ b/js/app.helpers.js @@ -52,7 +52,8 @@ function Helpers() { '.xlsx': {mime:'', icon:'text.png'}, '.pdf': {mime:'', icon:'pdf.png'}, '.odp': {mime:'', icon:'ppt.png'}, - '.ppt': {mime:'', icon:'ppt.png'} + '.ppt': {mime:'', icon:'ppt.png'}, + '.wgt': {mime:'application/widget', icon:'etc.png'} }, /** diff --git a/js/app.js b/js/app.js index a66514d..297023b 100644 --- a/js/app.js +++ b/js/app.js @@ -192,9 +192,16 @@ var App = null; app.model.isStorageExists(this.currentPath, app.displayFolder.bind(app, app.model.currentPath, refresh), function () { + $.mobile.popup.active && $.mobile.popup.active.close(); app.displayStorages(); - app.ui.alertPopup("'" + app.model.currentPath - + "'\nnot found"); + setTimeout( + function(){ + app.ui.alertPopup( + 'Path "' + app.model.currentPath + '" does no longer exist' + ); + }, + 200 + ); }); } else { this.displayStorages(); diff --git a/js/app.ui.js b/js/app.ui.js index dd9df79..785017d 100644 --- a/js/app.ui.js +++ b/js/app.ui.js @@ -138,6 +138,7 @@ function Ui() { document.addEventListener('webkitvisibilitychange', function () { if (document.webkitVisibilityState === 'visible') { + self.refreshSelectAllStatus(); app.refreshCurrentPage(true); } }); @@ -690,6 +691,8 @@ function Ui() { if (this.infoPopupVisibility) { this.toggleInfoPopup(); } + + this.refreshSelectAllStatus(); }, /** -- 2.7.4