mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-07 23:03:00 +03:00
Thumbnail toggle function.
This commit is contained in:
@@ -153,6 +153,14 @@ $('[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
|
||||||
|
$(document).ready(function(){
|
||||||
|
$('[data-action="expand-thumbnail"]').click(function(){
|
||||||
|
$('.galleryItem').toggleClass("collapse");
|
||||||
|
$('.galleryItem').find('img').slideToggle(50);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
// Popup close
|
// Popup close
|
||||||
$('.popup-close').click(function() {
|
$('.popup-close').click(function() {
|
||||||
$(this).closest('.overlay').fadeOut(240);
|
$(this).closest('.overlay').fadeOut(240);
|
||||||
|
Reference in New Issue
Block a user