jquery-fullsizable
jquery-fullsizable copied to clipboard
Multiple Instances
Hi! thank you for developing this jQuery plugin i have a small question:
Im trying to get to work two galleries to run using this initialization script :
$(function() {
$('a.genova').fullsizable({
detach_id: 'container'
});
$('a.breakfast').fullsizable({
detach_id: 'container'
});
$(document).on('fullsizable:opened', function(){
$("#jquery-fullsizable").swipe({
swipeLeft: function(){
$(document).trigger('fullsizable:next')
},
swipeRight: function(){
$(document).trigger('fullsizable:prev')
},
swipeUp: function(){
$(document).trigger('fullsizable:close')
}
});
});
});
The second one works allright but and the first one opens properly but when i move to the next one it shows me the second image from the second gallery.
Any way to make them work together?
Unfortunately it's a known limitation that this plugins doesn't work well when having multiple galleries on one page. This is high up on my list to get addressed. Sorry for now.