mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge pull request #6363 from beganovich/v5-589
(v5) Preselect token if avilable, on payments
This commit is contained in:
commit
649b04d610
@ -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