Created
January 13, 2017 18:16
-
-
Save gterrill/98035e54c107f6ddfd0a37f3524ebe55 to your computer and use it in GitHub Desktop.
Initialize the booking form when add to cart form is dynamically loaded by fancybox
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Call Fancybox for product modal + stop scroll to top | |
$('.product-modal').fancybox({ | |
ajax: { | |
complete: function(jqXHR, textStatus) { | |
new bta.BookingForm(jQ("form[action^='/cart/add']").not('.bta-active')); | |
} | |
}, | |
helpers: { | |
overlay: { | |
locked: false | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment