forked from CGM_Public/pretix_original
Fix paypal disabling continue button (Z#23110784) (#2875)
This commit is contained in:
committed by
GitHub
parent
bccd7cd1a4
commit
0b95f89882
@@ -72,8 +72,10 @@ 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
|
||||||
pretixpaypal.continue_button.prop("disabled", true);
|
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.
|
||||||
let apmtextselector = $("label[for=input_payment_paypal_apm]");
|
let apmtextselector = $("label[for=input_payment_paypal_apm]");
|
||||||
@@ -310,7 +312,6 @@ var pretixpaypal = {
|
|||||||
'tr_TR',
|
'tr_TR',
|
||||||
]
|
]
|
||||||
let lang = $("body").attr("data-locale").split('-')[0];
|
let lang = $("body").attr("data-locale").split('-')[0];
|
||||||
console.log(allowed_locales.find(element => element.startsWith(lang)));
|
|
||||||
return allowed_locales.find(element => element.startsWith(lang));
|
return allowed_locales.find(element => element.startsWith(lang));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user