From 377ba7c149377864787d075f051e6179bd31244a Mon Sep 17 00:00:00 2001 From: Olivier Paroz Date: Wed, 20 May 2015 23:59:49 +0200 Subject: Turn the Gallery button into a switch Implementation of #145 --- js/gallerybutton.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'js/gallerybutton.js') diff --git a/js/gallerybutton.js b/js/gallerybutton.js index f131572c..970cbde0 100644 --- a/js/gallerybutton.js +++ b/js/gallerybutton.js @@ -58,10 +58,17 @@ $(document).ready(function () { $('#fileList').on('updated', GalleryButton.onFileListUpdated); // Toggle for opening files list as gallery view - GalleryButton.button = $('
' + - '' + - '
'); + GalleryButton.button = + $('
' + + '' + + '
' + + ''); GalleryButton.button.click(function () { window.location.href = GalleryButton.url; -- cgit v1.2.3