mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fixes for scripts
This commit is contained in:
parent
7195436950
commit
9d51137a5a
@ -78,9 +78,7 @@ class SquareCreditCard {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async handle() {
|
async handle() {
|
||||||
if (document.querySelector('meta[name=square-authorize]')) {
|
|
||||||
await this.init();
|
await this.init();
|
||||||
}
|
|
||||||
|
|
||||||
document
|
document
|
||||||
.getElementById('authorize-card')
|
.getElementById('authorize-card')
|
||||||
@ -121,10 +119,6 @@ class SquareCreditCard {
|
|||||||
document.getElementById('save-card--container').style.display =
|
document.getElementById('save-card--container').style.display =
|
||||||
'grid';
|
'grid';
|
||||||
document.querySelector('input[name=token]').value = '';
|
document.querySelector('input[name=token]').value = '';
|
||||||
|
|
||||||
if (!this.isLoaded) {
|
|
||||||
await this.init();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
let toggleWithToken = document.querySelector(
|
let toggleWithToken = document.querySelector(
|
||||||
|
Loading…
Reference in New Issue
Block a user