Show correct enabled/disabled status in the function dialog

monitor.Enabled is a string and 0 is truthy in JS
This commit is contained in:
Matthew Noorenberghe 2020-09-10 15:12:31 -04:00
parent 2e5a897355
commit 46e69f8c27
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ function initPage() {
return;
}
function_form.elements['newFunction'].value = monitor.Function;
function_form.elements['newEnabled'].checked = monitor.Enabled;
function_form.elements['newEnabled'].checked = monitor.Enabled == '1';
function_form.elements['mid'].value = mid;
document.getElementById('function_monitor_name').innerHTML = monitor.Name;