mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-19 09:45:28 +01:00
fix bug where 'command' line was always shown
This commit is contained in:
parent
e2f4a33380
commit
fc06c743bc
@ -139,7 +139,7 @@
|
||||
});
|
||||
|
||||
function yesnoCheck() {
|
||||
if (document.getElementById('command').value == "command") {
|
||||
if (document.getElementById('action').value == "command") {
|
||||
document.getElementById("ifYes").style.display = "block";
|
||||
document.getElementById("command").required = true;
|
||||
} else {
|
||||
@ -229,7 +229,6 @@ try{
|
||||
}catch{
|
||||
console.log("no element named {{ data['schedule']['action'] }}")
|
||||
}
|
||||
console.log("in on load")
|
||||
yesnoCheck();
|
||||
basicAdvanced();
|
||||
ifDays();
|
||||
|
Loading…
x
Reference in New Issue
Block a user