mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-10 15:57:55 +00:00
fix some details
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
86dbb43532
commit
3e62ba0d27
6 changed files with 50 additions and 43 deletions
|
|
@ -1,7 +1,9 @@
|
|||
document.addEventListener("DOMContentLoaded", function () {
|
||||
// Hide submit button initially
|
||||
const optionsFormSubmit = document.getElementById("options-form-submit");
|
||||
optionsFormSubmit.style.display = 'none';
|
||||
const optionsFormSubmit = document.querySelectorAll(".options-form-submit");
|
||||
optionsFormSubmit.forEach(element => {
|
||||
element.style.display = 'none';
|
||||
});
|
||||
|
||||
const communityFormSubmit = document.getElementById("community-form-submit");
|
||||
communityFormSubmit.style.display = 'none';
|
||||
|
|
@ -72,7 +74,9 @@ document.addEventListener("DOMContentLoaded", function () {
|
|||
}
|
||||
|
||||
// Show or hide submit button based on changes
|
||||
optionsFormSubmit.style.display = hasChanges ? 'block' : 'none';
|
||||
optionsFormSubmit.forEach(element => {
|
||||
element.style.display = hasChanges ? 'block' : 'none';
|
||||
});
|
||||
}
|
||||
|
||||
// Function to compare current states to initial states
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
document.addEventListener("DOMContentLoaded", function(event) {
|
||||
// Collabora
|
||||
let collabora = document.getElementById("collabora");
|
||||
const collabora = document.getElementById("office-collabora");
|
||||
collabora.disabled = true;
|
||||
});
|
||||
|
|
@ -1,7 +1,5 @@
|
|||
document.addEventListener("DOMContentLoaded", function(event) {
|
||||
// OnlyOffice
|
||||
let onlyoffice = document.getElementById("onlyoffice");
|
||||
if (onlyoffice) {
|
||||
onlyoffice.disabled = true;
|
||||
}
|
||||
const onlyoffice = document.getElementById("office-onlyoffice");
|
||||
onlyoffice.disabled = true;
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue