mirror of
https://github.com/pretix/pretix.git
synced 2026-09-13 16:14:40 +00:00
PayPal: Fix loading of Smart Payment Buttons on APM payment page (regression introduced in #2875)
This commit is contained in:
@@ -72,9 +72,13 @@ var pretixpaypal = {
|
|||||||
pretixpaypal.currency = $("body").attr("data-currency");
|
pretixpaypal.currency = $("body").attr("data-currency");
|
||||||
pretixpaypal.locale = this.guessLocale();
|
pretixpaypal.locale = this.guessLocale();
|
||||||
}
|
}
|
||||||
// if no payment option is selected, disable the continue button
|
|
||||||
if (!pretixpaypal.continue_button[0].form.elements['payment'].value) {
|
// If no payment option is selected, and we're not on the paypage (which doesn't have a continue button),
|
||||||
pretixpaypal.continue_button.prop("disabled", true);
|
// disable the continue button
|
||||||
|
if (!pretixpaypal.paypage) {
|
||||||
|
if (!pretixpaypal.continue_button[0].form.elements['payment'].value) {
|
||||||
|
pretixpaypal.continue_button.prop("disabled", true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// We are setting the cogwheel already here, as the renderAPM() method might take some time to get loaded.
|
// We are setting the cogwheel already here, as the renderAPM() method might take some time to get loaded.
|
||||||
|
|||||||
Reference in New Issue
Block a user