4,114
edits
No edit summary |
No edit summary |
||
Line 29: | Line 29: | ||
src: imageElem.attr('src'), | src: imageElem.attr('src'), | ||
alt: imageElem.attr('alt'), | alt: imageElem.attr('alt'), | ||
caption: $(this).find('.caption' + imageClass).text() | caption: $(this).find('.caption' + imageClass).text(), // Correct caption class | ||
captionClass: 'caption-image' + i // Stores the specific caption class | |||
}); | }); | ||
} | } | ||
Line 138: | Line 139: | ||
'</div>'; | '</div>'; | ||
} | } | ||
// Attach a mousedown event listener to close the fixed column | // Attach a mousedown event listener to close the fixed column | ||
$(document).on('mousedown', function (event) { | $(document).on('mousedown', function (event) { |