]> BookStack Code Mirror - bookstack/commitdiff
Updated toggle thumbnails function.
authorNilesh Deepak <redacted>
Wed, 5 Jul 2017 10:39:20 +0000 (16:09 +0530)
committerNilesh Deepak <redacted>
Wed, 5 Jul 2017 10:39:20 +0000 (16:09 +0530)
resources/assets/js/global.js

index 0e82c23d865afbc26db9c93e98286254b513a555..3a288f791d8320763cddc48503de72fedcc265c4 100644 (file)
@@ -153,11 +153,10 @@ $('[data-action="expand-entity-list-details"]').click(function() {
     $('.entity-list.compact').find('p').not('.empty-text').slideToggle(240);
 });
 
-// Toggle thumbnail::hide image and reduce grid size
+// Toggle thumbnails
 $(document).ready(function(){
    $('[data-action="expand-thumbnail"]').click(function(){
-     $('.galleryItem').toggleClass("collapse");
-     $('.galleryItem').find('img').slideToggle(50);
+     $('.galleryItem').toggleClass("collapse").find('img').slideToggle(50);
    });
 });
 
Morty Proxy This is a proxified and sanitized view of the page, visit original site.