more paypal2 selector updates

This commit is contained in:
Richard Schreiber
2024-12-10 16:20:05 +01:00
committed by Mira Weller
parent 7406403939
commit d46ad7ff2a
@@ -92,7 +92,7 @@ var pretixpaypal = {
}
// 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 = $("input[name=payment][value=paypal_apm]").closest("label").find(".panel-title");
apmtextselector.prepend('<span class="fa fa-cog fa-spin"></span> ');
let sdk_url = 'https://www.paypal.com/sdk/js' +
@@ -272,7 +272,7 @@ var pretixpaypal = {
// The first selector is used on the regular payment-step of the checkout flow
// The second selector is used for the payment method change view.
// In the long run, the layout of both pages should be adjusted to be one.
let textselector = inputselector.closest("label");
let textselector = inputselector.closest("label").find('.panel-title');
let textselector2 = inputselector.next("strong");
let eligibles = [];