aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy-devel
diff options
context:
space:
mode:
Diffstat (limited to 'config/haproxy-devel')
-rw-r--r--config/haproxy-devel/haproxy_listeners_edit.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/config/haproxy-devel/haproxy_listeners_edit.php b/config/haproxy-devel/haproxy_listeners_edit.php
index 2fd9a6c3..3c62ec3a 100644
--- a/config/haproxy-devel/haproxy_listeners_edit.php
+++ b/config/haproxy-devel/haproxy_listeners_edit.php
@@ -299,15 +299,17 @@ $interfaces = haproxy_get_bindable_interfaces();
secondary = d.getElementById("secondary");
primary_frontend = d.getElementById("primary_frontend");
- if (secondary.checked)
+ if ((secondary !== null) && (secondary.checked))
type = primaryfrontends[primary_frontend.value]['ref']['type'];
else
type = d.getElementById("type").value;
setCSSdisplay(".haproxy_ssloffloading_enabled", ssloffload.checked);
setCSSdisplay(".haproxy_mode_http", type == "http");
- setCSSdisplay(".haproxy_primary", !secondary.checked);
- setCSSdisplay(".haproxy_secondary", secondary.checked);
+ if (secondary !== null) {
+ setCSSdisplay(".haproxy_primary", !secondary.checked);
+ setCSSdisplay(".haproxy_secondary", secondary.checked);
+ }
type_change(type);