jquery-fullsizable icon indicating copy to clipboard operation
jquery-fullsizable copied to clipboard

Multiple Instances

Open 594727294 opened this issue 10 years ago • 1 comments

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?

594727294 avatar Feb 18 '15 21:02 594727294

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.

MSchmidt avatar Feb 19 '15 11:02 MSchmidt