diff options
Diffstat (limited to 'js/galleryview.js')
-rw-r--r-- | js/galleryview.js | 3 |
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); |