Skip to content

Multiple Instances #14

@594727294

Description

@594727294

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions