From 1beffbadf419eb197ea13bfea96f3ba4ed6ec30f Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Fri, 22 Jul 2016 09:59:05 +1000 Subject: [PATCH] js mods --- booking.stripe.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/booking.stripe.js b/booking.stripe.js index c187254..7ae49e9 100644 --- a/booking.stripe.js +++ b/booking.stripe.js @@ -33,7 +33,9 @@ jQuery(document).ready(function($) { //currentForm = $(this).closest('form'); //if (currentForm === undefined) // return; + var settings = Drupal.settings.booking_stripe; var $stripeForm = $("#" + settings.form_selector); + msg($(':input[name="description"]', $stripeForm)); handler.open({ name: settings.name, //description: currentForm.find('input[name="description"]').val(), @@ -43,7 +45,7 @@ jQuery(document).ready(function($) { currency: "aud", //amount: currentForm.find('input[name="amount"]').val() * 100, amount: $(':input[name="amount"]', $stripeForm), - zipCode: true, + zipCode: true, closed: function() { //document.getElementById("booking_stripe_form").submit(); }