Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When a Lightbox2 slideshow that displays captions is closed and then another slideshow is opened that has no captions a bug is seen. Lightbox does not clean up the Lightbox.imageArray array and subsequently the captions for the first slideshow are displayed on the second slideshow.
The attached patch adds two lines of code to the Lightbox.end function to ensure the captions are not seen a second time. It shouldn't affect any other operations, but is good practice.
Comment | File | Size | Author |
---|---|---|---|
lightbox_close_cleanup.patch | 441 bytes | sydneyshan |
Comments
Comment #1
yukare CreditAttribution: yukare commentedCommited to git: http://drupalcode.org/project/lightbox2.git/commit/cdcf77b
Thanks.