mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-25 11:45:58 +00:00
Updated toggle thumbnails function.
This commit is contained in:
parent
6eccb3d5b9
commit
e88a06291e
@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user