This commit is contained in:
Nathan Coad
2016-07-22 09:59:05 +10:00
parent ac9b330eb7
commit 1beffbadf4

View File

@@ -33,7 +33,9 @@ jQuery(document).ready(function($) {
//currentForm = $(this).closest('form'); //currentForm = $(this).closest('form');
//if (currentForm === undefined) //if (currentForm === undefined)
// return; // return;
var settings = Drupal.settings.booking_stripe;
var $stripeForm = $("#" + settings.form_selector); var $stripeForm = $("#" + settings.form_selector);
msg($(':input[name="description"]', $stripeForm));
handler.open({ handler.open({
name: settings.name, name: settings.name,
//description: currentForm.find('input[name="description"]').val(), //description: currentForm.find('input[name="description"]').val(),
@@ -43,7 +45,7 @@ jQuery(document).ready(function($) {
currency: "aud", currency: "aud",
//amount: currentForm.find('input[name="amount"]').val() * 100, //amount: currentForm.find('input[name="amount"]').val() * 100,
amount: $(':input[name="amount"]', $stripeForm), amount: $(':input[name="amount"]', $stripeForm),
zipCode: true, zipCode: true,
closed: function() { closed: function() {
//document.getElementById("booking_stripe_form").submit(); //document.getElementById("booking_stripe_form").submit();
} }