From 46e69f8c27c95092a9bd863343817f54d298dbfb Mon Sep 17 00:00:00 2001 From: Matthew Noorenberghe Date: Thu, 10 Sep 2020 15:12:31 -0400 Subject: [PATCH] Show correct enabled/disabled status in the function dialog monitor.Enabled is a string and 0 is truthy in JS --- web/skins/classic/views/js/console.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/skins/classic/views/js/console.js b/web/skins/classic/views/js/console.js index a4d05bbcb..850703bb7 100644 --- a/web/skins/classic/views/js/console.js +++ b/web/skins/classic/views/js/console.js @@ -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;