mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-15 23:01:44 +03:00
Updated toggle thumbnails function.
This commit is contained in:
@ -153,11 +153,10 @@ $('[data-action="expand-entity-list-details"]').click(function() {
|
|||||||
$('.entity-list.compact').find('p').not('.empty-text').slideToggle(240);
|
$('.entity-list.compact').find('p').not('.empty-text').slideToggle(240);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Toggle thumbnail::hide image and reduce grid size
|
// Toggle thumbnails
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
$('[data-action="expand-thumbnail"]').click(function(){
|
$('[data-action="expand-thumbnail"]').click(function(){
|
||||||
$('.galleryItem').toggleClass("collapse");
|
$('.galleryItem').toggleClass("collapse").find('img').slideToggle(50);
|
||||||
$('.galleryItem').find('img').slideToggle(50);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user