mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-13 09:10:21 +00:00
Fix JS error expecting an absent form
Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
parent
83bc8042ce
commit
d395ae625a
1 changed files with 5 additions and 0 deletions
|
|
@ -1,4 +1,9 @@
|
|||
document.addEventListener("DOMContentLoaded", function () {
|
||||
// Don't run if the expected form isn't present.
|
||||
if (document.getElementById('options-form') === null) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Hide submit button initially
|
||||
const optionsFormSubmit = document.querySelectorAll(".options-form-submit");
|
||||
optionsFormSubmit.forEach(element => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue