mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Preselect the first token on WePay ACH payment page
This commit is contained in:
parent
fe5b5b7fcc
commit
5bf942a77e
@ -53,5 +53,14 @@
|
||||
document.getElementById('pay-now').addEventListener('click', function () {
|
||||
document.getElementById('server-response').submit();
|
||||
});
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
let firstAccount = document
|
||||
.querySelector('.toggle-payment-with-token')
|
||||
|
||||
firstAccount.checked = true;
|
||||
|
||||
document.querySelector('input[name=source]').value = firstAccount.dataset.token;
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
Loading…
x
Reference in New Issue
Block a user