mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Minor fixes for eway
This commit is contained in:
parent
7b8529ca95
commit
f80767bcfc
File diff suppressed because one or more lines are too long
@ -76,7 +76,7 @@
|
||||
"src": "resources/js/clients/payments/checkout-credit-card.js"
|
||||
},
|
||||
"resources/js/clients/payments/eway-credit-card.js": {
|
||||
"file": "assets/eway-credit-card-19df3242.js",
|
||||
"file": "assets/eway-credit-card-62ce5f3b.js",
|
||||
"isEntry": true,
|
||||
"src": "resources/js/clients/payments/eway-credit-card.js"
|
||||
},
|
||||
|
@ -469,7 +469,7 @@ class EwayRapid {
|
||||
?.addEventListener('click', (e) => this.completeAuthorization(e));
|
||||
|
||||
Array.from(
|
||||
document.getElementsByClassName('toggle-payment-with-token')
|
||||
document.getElementsByClassName('toggle-payment-with-token') ?? []
|
||||
).forEach((element) =>
|
||||
element.addEventListener('click', (element) => {
|
||||
document
|
||||
@ -483,6 +483,8 @@ class EwayRapid {
|
||||
})
|
||||
);
|
||||
|
||||
if (document.getElementById('toggle-payment-with-credit-card'))
|
||||
{
|
||||
document
|
||||
.getElementById('toggle-payment-with-credit-card')
|
||||
.addEventListener('click', (element) => {
|
||||
@ -494,6 +496,7 @@ class EwayRapid {
|
||||
document.querySelector('input[name=token]').value = '';
|
||||
document.getElementById('pay-now').disabled = true;
|
||||
});
|
||||
}
|
||||
|
||||
document.getElementById('pay-now')?.addEventListener('click', (e) => {
|
||||
let tokenInput = document.querySelector('input[name=token]');
|
||||
|
Loading…
x
Reference in New Issue
Block a user