js progress
This commit is contained in:
@@ -35,19 +35,19 @@ jQuery(document).ready(function($) {
|
|||||||
return;
|
return;
|
||||||
var settings = Drupal.settings.booking_stripe;
|
var settings = Drupal.settings.booking_stripe;
|
||||||
var $stripeForm = $("#" + settings.form_selector);
|
var $stripeForm = $("#" + settings.form_selector);
|
||||||
$description = $(':input[name="email"]', $stripeForm).val();
|
$description = $(':input[name="description"]', $stripeForm).val();
|
||||||
console.log([$description]);
|
console.log([$description]);
|
||||||
|
//description: currentForm.find('input[name="description"]').val(),
|
||||||
//description: $(':input[name="description"]', $stripeForm),
|
//email: currentForm.find('input[name="email"]').val(),
|
||||||
//email: $(':input[name="email"]', $stripeForm),
|
//amount: currentForm.find('input[name="amount"]').val() * 100,
|
||||||
//amount: $(':input[name="amount"]', $stripeForm),
|
|
||||||
//alert($(':input[name="description"]', $stripeForm));
|
//alert($(':input[name="description"]', $stripeForm));
|
||||||
handler.open({
|
handler.open({
|
||||||
name: settings.name,
|
name: settings.name,
|
||||||
description: currentForm.find('input[name="description"]').val(),
|
currency: "aud",
|
||||||
email: currentForm.find('input[name="email"]').val(),
|
description: $(':input[name="description"]', $stripeForm).val(),
|
||||||
currency: "aud",
|
email: $(':input[name="email"]', $stripeForm).val(),
|
||||||
amount: currentForm.find('input[name="amount"]').val() * 100,
|
amount: $(':input[name="amount"]', $stripeForm).val(),
|
||||||
zipCode: true,
|
zipCode: true,
|
||||||
closed: function() {
|
closed: function() {
|
||||||
//document.getElementById("booking_stripe_form").submit();
|
//document.getElementById("booking_stripe_form").submit();
|
||||||
|
Reference in New Issue
Block a user