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
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