Include both title and description when showing lightboxed images
This commit is contained in:
parent
ae56066281
commit
766d27301a
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user