-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extra #lightbox elements when reloading page with ajax #517
Comments
Hi, how do I implement that piece of code into my js file? |
I hit a similar issue trying to upgrade from 2.51 to 2.8.2. My patch recommendation would be to defer init() to run after the dom loads, which used to happen in a $(function(){ } ) block at the bottom of 2.51, but runs on script load in 2.8.2. |
Same issue. Using the trick that @jpardi provided to make it work. |
Chiming in on this older issue. If anyone else is seeing this issue they can call In the next release I'll be adding a code check to prevent the duplication of the DOM elements. Multiple |
In my site, my images are loaded via ajax. Two things I have found:
Does this make sense? If so, can this fix be incorporated into the master code?
The text was updated successfully, but these errors were encountered: