diff options
author | Olivier Paroz <github@oparoz.com> | 2015-09-26 23:14:40 +0300 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-09-26 23:14:40 +0300 |
commit | c29d6785a9ad2d49629595025f7fe928266ad6a2 (patch) | |
tree | 050ac9ec094d487a8ba8b5b84e72d30a32e4c243 /js/galleryview.js | |
parent | 033f5d584b2a1b6b89e2b2d42b2f5cfba29fc68c (diff) |
Reset album design is folder is empty
Fixes #385
[ci skip]
Diffstat (limited to 'js/galleryview.js')
-rw-r--r-- | js/galleryview.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/js/galleryview.js b/js/galleryview.js index 38c880b6..41c25bc2 100644 --- a/js/galleryview.js +++ b/js/galleryview.js @@ -41,14 +41,17 @@ Gallery.showEmpty(); } else { Gallery.showEmptyFolder(); + this.hideButtons(); Gallery.currentAlbum = albumPath; this.breadcrumb = new Gallery.Breadcrumb(albumPath); this.breadcrumb.setMaxWidth($(window).width() - Gallery.buttonsWidth); + Gallery.config.albumDesign = null; } } else { - this._setBackgroundColour(); this.viewAlbum(albumPath); } + + this._setBackgroundColour(); }, /** @@ -198,6 +201,14 @@ } }, + hideButtons: function () { + $('#loading-indicator').hide(); + $('#album-info-button').hide(); + $('#share-button').hide(); + $('#sort-name-button').hide(); + $('#sort-date-button').hide(); + }, + /** * Adds all the click handlers to buttons the first time they appear in the interface * |