Skip to content

Dynamic popups - ajax loading #217

Description

@visioncode

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions