aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy-devel
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2014-01-21 09:43:50 -0500
committerjim-p <jimp@pfsense.org>2014-01-21 09:43:50 -0500
commitd24903fbce5d38299b2e01a3d34d8d002fcc698d (patch)
tree9a929948fade3ec3e8f56040fad150d761ee54e6 /config/haproxy-devel
parent9c277bf31b361546080ba3e66b977cf6465e7938 (diff)
downloadpfsense-packages-d24903fbce5d38299b2e01a3d34d8d002fcc698d.tar.gz
pfsense-packages-d24903fbce5d38299b2e01a3d34d8d002fcc698d.tar.bz2
pfsense-packages-d24903fbce5d38299b2e01a3d34d8d002fcc698d.zip
Small JS fix for haproxy-devel, fix version & bump slightly.
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);