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.

CommentFileSizeAuthor
lightbox_close_cleanup.patch441 bytessydneyshan
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

yukare’s picture

Status: Patch (to be ported) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.