From 62e2f3f0937dc3bd818a71da765f2f0138a047ca Mon Sep 17 00:00:00 2001 From: aj Date: Tue, 16 Dec 2014 12:18:46 -0600 Subject: [PATCH] Fix for #15 --- jquery.poptrox.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/jquery.poptrox.js b/jquery.poptrox.js index e296666..297f12a 100644 --- a/jquery.poptrox.js +++ b/jquery.poptrox.js @@ -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 @@ -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