summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-02-04 17:03:25 -0500
committerjim-p <jimp@pfsense.org>2013-02-04 17:04:12 -0500
commitf54712b6c8cc69721ccfd5b26a23e62bca722b72 (patch)
treedc97722fbc31f656c4f242d01726494df1e15e41
parent56756d31a2aebba3e15255129a339464f2699f3e (diff)
downloadpfsense-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.php3
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;
OpenPOWER on IntegriCloud