Cleanup old checkout related settings code

This commit is contained in:
Dennis Reimann 2024-12-02 11:53:21 +01:00
parent 3046fe0f0b
commit 9175af4abe
No known key found for this signature in database
GPG Key ID: 5009E1797F03F8D0

View File

@ -33,16 +33,12 @@
: ''
});
delegate('click', '#Presets_InStore', e => {
$("#CheckoutV2Settings").addClass('show');
$("#ClassicCheckoutSettings").removeClass('show');
$("#CheckNFC").removeClass('d-none');
$("#PlaySoundOnPayment").prop('checked', true);
$("#ShowPayInWalletButton").prop('checked', false);
$("#ShowStoreHeader").prop('checked', false);
});
delegate('click', '#Presets_Online', e => {
$("#CheckoutV2Settings").addClass('show');
$("#ClassicCheckoutSettings").removeClass('show');
$("#CheckNFC").addClass('d-none');
$("#PlaySoundOnPayment").prop('checked', false);
$("#ShowPayInWalletButton").prop('checked', true);
@ -135,7 +131,7 @@
<div id="CheckNFC" class="form-group d-none">
<button type="button" class="btn btn-outline-secondary" text-translate="true">Check if NFC is supported and enabled on this device</button>
</div>
<div class="checkout-settings collapse show" id="CheckoutV2Settings">
<div class="checkout-settings">
<div class="form-group">
<label asp-for="DisplayExpirationTimer" class="form-label"></label>
<div class="input-group">