mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
fix typo in forms.sh
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
3bff5f2851
commit
9728a84e75
1 changed files with 2 additions and 2 deletions
|
|
@ -31,7 +31,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
function disableSpinnerSpinner() {
|
||||
function enableSpinner() {
|
||||
document.getElementById('overlay').classList.add('loading');
|
||||
}
|
||||
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
xhr.addEventListener('error', () => disableSpinner());
|
||||
xhr.open(form.method, form.getAttribute("action"));
|
||||
xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
|
||||
disableSpinnerSpinner();
|
||||
enableSpinner();
|
||||
xhr.send(new URLSearchParams(new FormData(form)));
|
||||
event.preventDefault();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue