diff options
Diffstat (limited to 'js/galleryview.js')
-rw-r--r-- | js/galleryview.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/js/galleryview.js b/js/galleryview.js index 55cfff75..eb616fc0 100644 --- a/js/galleryview.js +++ b/js/galleryview.js @@ -32,13 +32,15 @@ */ init: function (albumPath) { 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); - this.breadcrumb.setMaxWidth($(window).width() - Gallery.buttonsWidth); + if (albumPath === '') { + Gallery.showEmpty(); + } else { + Gallery.showEmptyFolder(); + Gallery.currentAlbum = albumPath; + this.breadcrumb = new Gallery.Breadcrumb(albumPath); + this.breadcrumb.setMaxWidth($(window).width() - Gallery.buttonsWidth); + } } else { // Only do it when the app is initialised if (this.requestId === -1) { |