From d24903fbce5d38299b2e01a3d34d8d002fcc698d Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 21 Jan 2014 09:43:50 -0500 Subject: Small JS fix for haproxy-devel, fix version & bump slightly. --- config/haproxy-devel/haproxy_listeners_edit.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'config/haproxy-devel') 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); -- cgit v1.2.3