Merge pull request #3039 from mnoorenberghe/monitor_function_disabled

Show correct enabled/disabled status in the function dialog
This commit is contained in:
Isaac Connor
2020-09-10 15:57:44 -04:00
committed by GitHub

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;