Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/gallery.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2015-06-25 21:37:59 +0300
committerOlivier Paroz <github@oparoz.com>2015-09-15 17:51:54 +0300
commit27e1dc96ce7193211864890c4129358c551f8078 (patch)
treebf029737a0bcc63a70b759056869f1031825fd76 /js/gallerybutton.js
parent377ba7c149377864787d075f051e6179bd31244a (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.js2
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;
});