[FileManager] updated FileManager sources
[samples/web/FileManager.git] / js / app.js
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();