From a147e1a50e6044687226e60ad471d9b0ac50eb0c Mon Sep 17 00:00:00 2001 From: Olivier Paroz Date: Sun, 13 Sep 2015 20:41:34 +0200 Subject: Add new spinner to infobox and stop it on empty gallery content --- js/galleryview.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'js/galleryview.js') diff --git a/js/galleryview.js b/js/galleryview.js index 00c1830e..37a7a7b6 100644 --- a/js/galleryview.js +++ b/js/galleryview.js @@ -43,8 +43,10 @@ this.clear(); if (albumPath === '') { Gallery.showEmpty(); + this.spinner.stop(this.spinnerDiv); } else { Gallery.showEmptyFolder(); + this.spinner.stop(this.spinnerDiv); Gallery.currentAlbum = albumPath; this.breadcrumb = new Gallery.Breadcrumb(albumPath); this.breadcrumb.setMaxWidth($(window).width() - Gallery.buttonsWidth); -- cgit v1.2.3