[FileManager] updated FileManager sources
authorPiotr Dabrowski <p.dabrowski2@samsung.com>
Fri, 13 Sep 2013 06:54:57 +0000 (08:54 +0200)
committerPiotr Dabrowski <p.dabrowski2@samsung.com>
Fri, 13 Sep 2013 06:54:57 +0000 (08:54 +0200)
Change-Id: I567fab253bde88fa194ed2820253ff17ac27a386

js/app.helpers.js
js/app.js
js/app.ui.js

index 0ae7397..c7f0a16 100644 (file)
@@ -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'}
                },
 
                /**
index a66514d..297023b 100644 (file)
--- 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();
index dd9df79..785017d 100644 (file)
@@ -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();
                },
 
                /**