diff --git a/webserver/openplc.db b/webserver/openplc.db
index b236890b..92954fe0 100644
Binary files a/webserver/openplc.db and b/webserver/openplc.db differ
diff --git a/webserver/pages.py b/webserver/pages.py
index 7b233482..f2ef6446 100755
--- a/webserver/pages.py
+++ b/webserver/pages.py
@@ -862,14 +862,7 @@
"""
settings_tail = """
-
-
-
-
+
@@ -892,6 +885,8 @@
var modbus_text = document.getElementById('modbus_server_port');
var dnp3_checkbox = document.getElementById('dnp3_server');
var dnp3_text = document.getElementById('dnp3_server_port');
+ var auto_run_checkbox = document.getElementById('auto_run');
+ var auto_run_text = document.getElementById('auto_run_text');
if (modbus_checkbox.checked == true)
{
@@ -910,6 +905,15 @@
{
dnp3_text.disabled = true;
}
+
+ if (auto_run_checkbox.checked == true)
+ {
+ auto_run_text.value = 'true';
+ }
+ else
+ {
+ auto_run_text.value = 'false';
+ }
}
document.getElementById('modbus_server').onchange = function()
@@ -922,6 +926,11 @@
setupCheckboxes();
}
+ document.getElementById('auto_run').onchange = function()
+ {
+ setupCheckboxes();
+ }
+
function validateForm()
{
var modbus_checkbox = document.forms["uploadForm"]["modbus_server"].checked;