mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Automatically focus credit card input if token is not present
This commit is contained in:
parent
2c7f521092
commit
67aaf57e19
@ -70,9 +70,12 @@
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
let toggleWithToken = document.querySelector('.toggle-payment-with-token');
|
||||
let toggleWithCard = document.querySelector('#toggle-payment-with-credit-card');
|
||||
|
||||
if (toggleWithToken) {
|
||||
toggleWithToken.click();
|
||||
} else if (toggleWithCard) {
|
||||
toggleWithCard.click();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user