Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/gallery.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'js/galleryview.js')
-rw-r--r--js/galleryview.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/galleryview.js b/js/galleryview.js
index 502c22db..55cfff75 100644
--- a/js/galleryview.js
+++ b/js/galleryview.js
@@ -31,9 +31,10 @@
* @param {string} albumPath
*/
init: function (albumPath) {
- if (Gallery.images.length === 0) {
+ if ($.isEmptyObject(Gallery.imageMap)) {
//Gallery.showEmpty();
// FIXME Make the diff between a root and deep folder
+ this.clear();
Gallery.showEmptyFolder();
Gallery.currentAlbum = albumPath;
this.breadcrumb = new Gallery.Breadcrumb(albumPath);