diff options
author | Olivier Paroz <github@oparoz.com> | 2015-09-21 18:14:19 +0300 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-09-21 18:21:31 +0300 |
commit | 558186a025ee6585d6f5016f933bc1f700fb57ee (patch) | |
tree | dc9fc08fd65a9900ae79bd34bef9cb21c31936bd /js/gallerybutton.js | |
parent | b6012f21760783c19cc1c5c7b645a19be9d500db (diff) |
Fix spinners for themes
Spinners come in many forms and CSS spinners can't be applied as a background property like GIFs, which means that they need their own DIV
Diffstat (limited to 'js/gallerybutton.js')
-rw-r--r-- | js/gallerybutton.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/gallerybutton.js b/js/gallerybutton.js index d645a39f..dc96168b 100644 --- a/js/gallerybutton.js +++ b/js/gallerybutton.js @@ -60,13 +60,14 @@ $(document).ready(function () { // Button for opening files list as gallery view GalleryButton.button = $('<div id="gallery-button" class="button view-switcher">' + + '<div id="button-loading"></div>' + '<img class="svg" src="' + OC.imagePath('core', 'actions/toggle-pictures.svg') + '"' + 'alt="' + t('gallery', 'Gallery view') + '"/>' + '</div>'); GalleryButton.button.click(function () { - $(this).addClass('loading'); + $(this).children('#button-loading').addClass('loading'); window.location.href = GalleryButton.url; }); |