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() {
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
let toggleWithToken = document.querySelector('.toggle-payment-with-token');
|
let toggleWithToken = document.querySelector('.toggle-payment-with-token');
|
||||||
|
let toggleWithCard = document.querySelector('#toggle-payment-with-credit-card');
|
||||||
|
|
||||||
if (toggleWithToken) {
|
if (toggleWithToken) {
|
||||||
toggleWithToken.click();
|
toggleWithToken.click();
|
||||||
|
} else if (toggleWithCard) {
|
||||||
|
toggleWithCard.click();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user