Skip to content
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

Dealing with elements loaded with ajax #34

Open
MoacirFuhr opened this issue Feb 8, 2016 · 0 comments
Open

Dealing with elements loaded with ajax #34

MoacirFuhr opened this issue Feb 8, 2016 · 0 comments

Comments

@MoacirFuhr
Copy link

I was having some trouble using the plugin with links that were loaded by ajax. After a while I found the solution, just wanted to share if anyone has the same problem:

Normal request:

$ ('.lightbox').lightbox();

Requests for items loaded with ajax:

$ (Document) .ajaxComplete (function (event, request, settings) {
      $ ('.lightbox').lightbox ();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant