Fix pretix-stripe.js

This commit is contained in:
Raphael Michel
2018-10-03 17:31:06 +02:00
parent 9f0e508ab3
commit f78ec830b5

View File

@@ -33,7 +33,7 @@ var pretixstripe = {
if (pretixstripe.stripe !== null) { if (pretixstripe.stripe !== null) {
return; return;
} }
$('.stripe-container').closest("form").find(".btn-primary").prop("disabled", true); $('.stripe-container').closest("form").find(".checkout-button-row .btn-primary").prop("disabled", true);
$.ajax( $.ajax(
{ {
url: 'https://js.stripe.com/v3/', url: 'https://js.stripe.com/v3/',
@@ -120,7 +120,7 @@ var pretixstripe = {
} }
}); });
} }
$('.stripe-container').closest("form").find(".btn-primary").prop("disabled", false); $('.stripe-container').closest("form").find(".checkout-button-row .btn-primary").prop("disabled", false);
} }
} }
); );
@@ -129,7 +129,7 @@ var pretixstripe = {
if (pretixstripe.checkout_handler !== null) { if (pretixstripe.checkout_handler !== null) {
return; return;
} }
$('.stripe-container').closest("form").find(".btn-primary").prop("disabled", true); $('.stripe-container').closest("form").find(".checkout-button-row .btn-primary").prop("disabled", true);
$.ajax( $.ajax(
{ {
url: 'https://checkout.stripe.com/checkout.js', url: 'https://checkout.stripe.com/checkout.js',
@@ -151,7 +151,7 @@ var pretixstripe = {
allowRememberMe: false, allowRememberMe: false,
billingAddress: false billingAddress: false
}); });
$('.stripe-container').closest("form").find(".btn-primary").prop("disabled", false); $('.stripe-container').closest("form").find(".checkout-button-row .btn-primary").prop("disabled", false);
} }
} }
); );