mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Preselect token if avilable, on payments
This commit is contained in:
parent
d1ad3bcb26
commit
91dc9e3b0f
@ -57,5 +57,13 @@
|
|||||||
.querySelector('div[data-ref="gateway-container"]')
|
.querySelector('div[data-ref="gateway-container"]')
|
||||||
.scrollIntoView({behavior: "smooth"});
|
.scrollIntoView({behavior: "smooth"});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
|
let toggleWithToken = document.querySelector('.toggle-payment-with-token');
|
||||||
|
|
||||||
|
if (toggleWithToken) {
|
||||||
|
toggleWithToken.click();
|
||||||
|
}
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
@endpush
|
@endpush
|
||||||
|
Loading…
x
Reference in New Issue
Block a user