From: Dan Millar Date: Sun, 4 May 2014 10:31:38 +0000 (+0100) Subject: Allow false to be passed as abort_on_close option X-Git-Tag: v5.2.3~19^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F5107%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Allow false to be passed as abort_on_close option Before as it was only looking to see if the abort var was defined or not you were unable to set the abort_on_close option to false and have the post callbacks trigger. --- diff --git a/js/foundation/foundation.joyride.js b/js/foundation/foundation.joyride.js index 3d610c13b..243e469eb 100644 --- a/js/foundation/foundation.joyride.js +++ b/js/foundation/foundation.joyride.js @@ -827,7 +827,7 @@ $('.joyride-modal-bg').hide(); this.settings.$current_tip.hide(); - if (typeof abort === 'undefined') { + if (typeof abort === 'undefined' || abort === false) { this.settings.post_step_callback(this.settings.$li.index(), this.settings.$current_tip); this.settings.post_ride_callback(this.settings.$li.index(), this.settings.$current_tip); }