]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Allow false to be passed as abort_on_close option 5107/head
authorDan Millar <dan@decode.uk.com>
Sun, 4 May 2014 10:31:38 +0000 (11:31 +0100)
committerDan Millar <dan@decode.uk.com>
Sun, 4 May 2014 10:31:38 +0000 (11:31 +0100)
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.

js/foundation/foundation.joyride.js

index 3d610c13ba7e929fdb8757b6c490a42265b5a578..243e469eb6dda50f6892ba64add9cbf06095ea01 100644 (file)
       $('.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);
       }