forked from CGM_Public/pretix_original
Fix pretix-stripe.js
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user