fix bug where 'command' line was always shown

This commit is contained in:
Andrew 2022-01-11 18:37:31 -05:00
parent e2f4a33380
commit fc06c743bc

View File

@ -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();