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 75ff8f40f9..8b4ca095c7 100644 --- a/src/pretix/plugins/paypal2/static/pretixplugins/paypal2/pretix-paypal.js +++ b/src/pretix/plugins/paypal2/static/pretixplugins/paypal2/pretix-paypal.js @@ -92,8 +92,8 @@ 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]"); - apmtextselector.prepend(' '); + const apmtextselector = $("input[name=payment][value=paypal_apm]").closest("label").find(".accordion-label-text"); + apmtextselector.append(' '); let sdk_url = 'https://www.paypal.com/sdk/js' + '?client-id=' + pretixpaypal.client_id + @@ -269,11 +269,7 @@ var pretixpaypal = { renderAPMs: function () { pretixpaypal.restore(); let inputselector = $("input[name=payment][value=paypal_apm]"); - // 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 textselector2 = inputselector.next("strong"); + let textselector = inputselector.closest("label").find('.accordion-label-text'); let eligibles = []; pretixpaypal.paypal.getFundingSources().forEach(function (fundingSource) { @@ -297,10 +293,6 @@ var pretixpaypal = { textselector.text(eligibles.join(', ')); textselector.fadeIn(300); }); - textselector2.fadeOut(300, function () { - textselector2[0].textContent = eligibles.join(', '); - textselector2.fadeIn(300); - }); }, guessLocale: function() { diff --git a/src/pretix/presale/templates/pretixpresale/event/checkout_customer.html b/src/pretix/presale/templates/pretixpresale/event/checkout_customer.html index 5398eb5885..df8388494d 100644 --- a/src/pretix/presale/templates/pretixpresale/event/checkout_customer.html +++ b/src/pretix/presale/templates/pretixpresale/event/checkout_customer.html @@ -8,134 +8,118 @@