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) { lightboxImages.forEach(function(image, index) {
if ( image.id == imageid ) startIndex = index; if ( image.id == imageid ) startIndex = index;
images.push(image.imageurl); images.push(image.imageurl);
captions.push(image.description); captions.push(image.title + ((image.description != "") ? ": " + image.description : ""));
}); });
SimpleLightbox.open({ SimpleLightbox.open({
items: images, items: images,