Skip to content

Commit

Permalink
Fix for #15
Browse files Browse the repository at this point in the history
  • Loading branch information
aj committed Dec 16, 2014
1 parent 69f56a9 commit 62e2f3f
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions jquery.poptrox.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
popupHeight: 100, // Popup height
popupIsFixed: false, // If true, popup won't resize to fit images
useBodyOverflow: false, // If true, the BODY tag is set to overflow: hidden when the popup is visible
usePopupEasyClose: false, // If true, popup can be closed by clicking on it anywhere
usePopupEasyClose: true, // If true, popup can be closed by clicking on it anywhere
usePopupForceClose: false, // If true, popup can be closed even while content is loading
usePopupLoader: true, // If true, show the popup loader
usePopupCloser: true, // If true, show the popup closer button/link
Expand Down Expand Up @@ -291,13 +291,21 @@
});

$nav_next
.on('click', function() {
.on('click', function(e) {

e.stopPropagation();
e.preventDefault();
$popup.trigger('poptrox_next');

});

$nav_previous
.on('click', function() {
.on('click', function(e) {

e.stopPropagation();
e.preventDefault();
$popup.trigger('poptrox_previous');

});

$overlay
Expand Down

0 comments on commit 62e2f3f

Please sign in to comment.