lokesh / lightbox2

THE original Lightbox script (v2).
http://lokeshdhakar.com/projects/lightbox2/
MIT License
6.17k stars 1.76k forks source link

Class selector missing for lb-copyright #637

Closed roryaherne closed 5 years ago

roryaherne commented 5 years ago

V2.9.0 (I don't see the fix in the changelog for 2.10.0)

In a lightbox gallery, if image[0] has no copyright but image[0+n does], clicking back results in image[0] displaying the copyright info from image[0+n]

changeImage() function:

this.$lightbox.find(".lb-image, .lb-nav, .lb-prev, .lb-next, .lb-dataContainer, .lb-numbers, .lb-caption, .lb-story, lb-copyright").hide(),

lb-copyright is missing the dot/css class selector. Sorry I can't locate the exact file and line number, working off a Chrome Prettified version of the script.


APOLOGIES - THIS WAS A CUSTOM CHANGE/EXTENSION TO THE LIBRARY: PLEASE DELETE THIS