diff options
author | Olivier Paroz <github@oparoz.com> | 2015-06-25 21:37:59 +0300 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-09-15 17:51:54 +0300 |
commit | 27e1dc96ce7193211864890c4129358c551f8078 (patch) | |
tree | bf029737a0bcc63a70b759056869f1031825fd76 /js/gallerybutton.js | |
parent | 377ba7c149377864787d075f051e6179bd31244a (diff) |
Show that something is happening after the user has clicked on the switch
Diffstat (limited to 'js/gallerybutton.js')
-rw-r--r-- | js/gallerybutton.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/gallerybutton.js b/js/gallerybutton.js index 970cbde0..8f45de63 100644 --- a/js/gallerybutton.js +++ b/js/gallerybutton.js @@ -71,6 +71,8 @@ $(document).ready(function () { '</div>'); GalleryButton.button.click(function () { + $(this).addClass('loading'); + $(this).find('img').attr('src', OC.imagePath('core', 'loading-small.gif')); window.location.href = GalleryButton.url; }); |