Include both title and description when showing lightboxed images

This commit is contained in:
Junior 2022-02-15 21:50:44 +00:00
parent ae56066281
commit 766d27301a

View File

@ -130,7 +130,7 @@ function showImage(clickedElement) {
lightboxImages.forEach(function(image, index) {
if ( image.id == imageid ) startIndex = index;
images.push(image.imageurl);
captions.push(image.description);
captions.push(image.title + ((image.description != "") ? ": " + image.description : ""));
});
SimpleLightbox.open({
items: images,