From 7406403939e83d2d969800b81698dfcc43c070f7 Mon Sep 17 00:00:00 2001 From: Richard Schreiber Date: Fri, 6 Dec 2024 15:56:36 +0100 Subject: [PATCH] hopefully fix label-selector for paypal2 --- .../paypal2/static/pretixplugins/paypal2/pretix-paypal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/plugins/paypal2/static/pretixplugins/paypal2/pretix-paypal.js b/src/pretix/plugins/paypal2/static/pretixplugins/paypal2/pretix-paypal.js index 75ff8f40f..98c969280 100644 --- a/src/pretix/plugins/paypal2/static/pretixplugins/paypal2/pretix-paypal.js +++ b/src/pretix/plugins/paypal2/static/pretixplugins/paypal2/pretix-paypal.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 = $("label[for=input_payment_paypal_apm]"); + let textselector = inputselector.closest("label"); let textselector2 = inputselector.next("strong"); let eligibles = [];