Skip to content

Commit

Permalink
Fix for ajlkn#26 - indexing of queued items
Browse files Browse the repository at this point in the history
The problem is that marking anchor as ignored results in not adding it
to the images queue, hence the queue is shorter than total number of
images. The initial processing goes through images and creates a
function that trigger opening an image by its initial index, but the
index is different in the queue due to ignored images.
  • Loading branch information
Przemysław Wojnowski committed May 1, 2015
1 parent 1c386de commit 46a1279
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.poptrox.js
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@
e.preventDefault();
e.stopPropagation();

$popup.trigger('poptrox_open', [index]);
$popup.trigger('poptrox_open', [queue.length-1]);

});

Expand All @@ -870,4 +870,4 @@

};

})(jQuery);
})(jQuery);

0 comments on commit 46a1279

Please sign in to comment.