diff options
-rw-r--r-- | js/gallery.js | 5 | ||||
-rw-r--r-- | js/galleryview.js | 13 |
2 files changed, 12 insertions, 6 deletions
diff --git a/js/gallery.js b/js/gallery.js index a5ef69d9..a1b2b676 100644 --- a/js/gallery.js +++ b/js/gallery.js @@ -287,11 +287,6 @@ 'No media files found in this folder') + '</p>'; emptyContentElement.html(message); emptyContentElement.removeClass('hidden'); - $('#loading-indicator').hide(); - $('#album-info-button').hide(); - $('#share-button').hide(); - $('#sort-name-button').hide(); - $('#sort-date-button').hide(); }, /** 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 * |