This commit is contained in:
2026-03-04 15:17:18 +00:00
parent 0c75eb7d3c
commit 8dfd683880
+13 -1
View File
@@ -189,8 +189,20 @@ document.querySelectorAll('.edit-btn').forEach(button => {
document.getElementById('editName').value = name;
document.getElementById('editNoshutdown').value = noshutdown;
document.getElementById('editTime').value = time;
const timeSelect = document.getElementById('editTime');
const noshutdownSelect = document.getElementById('editNoshutdown');
document.getElementById('editTime').disabled = (noshutdown == "1");
timeSelect.disabled = (noshutdown == "1");
noshutdownSelect.addEventListener('change', function () {
if (this.value == "1")
{
timeSelect.disabled = true;
}
else
{
timeSelect.disabled = false;
}
});
});
});