diff options
author | jim-p <jimp@pfsense.org> | 2014-01-21 09:43:50 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2014-01-21 09:43:50 -0500 |
commit | d24903fbce5d38299b2e01a3d34d8d002fcc698d (patch) | |
tree | 9a929948fade3ec3e8f56040fad150d761ee54e6 /config | |
parent | 9c277bf31b361546080ba3e66b977cf6465e7938 (diff) | |
download | pfsense-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')
-rw-r--r-- | config/haproxy-devel/haproxy_listeners_edit.php | 8 |
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); |