mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-19 09:45:28 +01:00
fix true/false flip on edit task enable/disable
This commit is contained in:
parent
68e22de069
commit
f681e5d69d
@ -209,7 +209,7 @@ try{
|
|||||||
if("{{ data['schedule']['enabled'] }}" == 'True'){
|
if("{{ data['schedule']['enabled'] }}" == 'True'){
|
||||||
document.getElementById('enabled').checked = true;
|
document.getElementById('enabled').checked = true;
|
||||||
}else{
|
}else{
|
||||||
document.getElementById('enabled').checked = true;
|
document.getElementById('enabled').checked = false;
|
||||||
}
|
}
|
||||||
if("{{ data['schedule']['one_time'] }}" == 'True'){
|
if("{{ data['schedule']['one_time'] }}" == 'True'){
|
||||||
document.getElementById('one_time').checked = true;
|
document.getElementById('one_time').checked = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user