a
This commit is contained in:
@@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user