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:
parent
2e5a897355
commit
46e69f8c27
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue