mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-04-27 22:54:05 +08: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);
|
$('.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);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user