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

Dynamic popups - ajax loading #217

Closed
visioncode opened this issue Sep 24, 2013 · 0 comments
Closed

Dynamic popups - ajax loading #217

visioncode opened this issue Sep 24, 2013 · 0 comments

Comments

@visioncode
Copy link

How can I fix this issue:

http://model-pool.de/model/100497/Alina_N

You can click on each picture to open the magnific popup. If you switch to radiobutton "Snapshots", you can also open the popup. But if you then go back to "All Images", magnific popup fails. There must be anything wrong with elements that were already binded once. But I dont know how I could destroy them ..

any help ?

My initialize:
$('.popup').magnificPopup({
type: 'image',
closeOnContentClick: true,
mainClass: 'mfp-img-mobile',
image: {
verticalFit: true
}
});

after switching the category, i call this:
$('.popup').magnificPopup(popup_settings);

.popup is the class which each image has

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