diff options
author | jim-p <jimp@pfsense.org> | 2013-02-04 17:03:25 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-02-04 17:04:12 -0500 |
commit | f54712b6c8cc69721ccfd5b26a23e62bca722b72 (patch) | |
tree | dc97722fbc31f656c4f242d01726494df1e15e41 | |
parent | 56756d31a2aebba3e15255129a339464f2699f3e (diff) | |
download | pfsense-f54712b6c8cc69721ccfd5b26a23e62bca722b72.zip pfsense-f54712b6c8cc69721ccfd5b26a23e62bca722b72.tar.gz |
Fix a couple JS errors/problems with OpenVPN server code.
-rw-r--r-- | usr/local/www/vpn_openvpn_server.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/vpn_openvpn_server.php b/usr/local/www/vpn_openvpn_server.php index 10d6511..78f08a2 100644 --- a/usr/local/www/vpn_openvpn_server.php +++ b/usr/local/www/vpn_openvpn_server.php @@ -540,7 +540,7 @@ function mode_change() { function autokey_change() { - if (document.iform.autokey_enable.checked) + if ((document.iform.autokey_enable != null) && (document.iform.autokey_enable.checked)) document.getElementById("autokey_opts").style.display="none"; else document.getElementById("autokey_opts").style.display=""; @@ -660,6 +660,7 @@ function tuntap_change() { document.getElementById("serverbridge_dhcp_start").style.display=""; document.getElementById("serverbridge_dhcp_end").style.display=""; document.getElementById("topology_subnet_opt").style.display="none"; + document.iform.serverbridge_dhcp.disabled = false; if (document.iform.serverbridge_dhcp.checked) { document.iform.serverbridge_interface.disabled = false; document.iform.serverbridge_dhcp_start.disabled = false; |