From 27e1dc96ce7193211864890c4129358c551f8078 Mon Sep 17 00:00:00 2001 From: Olivier Paroz Date: Thu, 25 Jun 2015 20:37:59 +0200 Subject: Show that something is happening after the user has clicked on the switch --- js/gallerybutton.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'js/gallerybutton.js') 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 () { ''); GalleryButton.button.click(function () { + $(this).addClass('loading'); + $(this).find('img').attr('src', OC.imagePath('core', 'loading-small.gif')); window.location.href = GalleryButton.url; }); -- cgit v1.2.3