From 71880c969c81bf502e1047812691aff1ead399b4 Mon Sep 17 00:00:00 2001 From: pierrepomes Date: Sun, 17 Oct 2010 10:35:15 -0400 Subject: Do not include 'remoteid' javascript functions for mobile ipsec. Ticket #797 --- usr/local/www/vpn_ipsec_phase2.php | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/usr/local/www/vpn_ipsec_phase2.php b/usr/local/www/vpn_ipsec_phase2.php index ba69dcf..824ba19 100644 --- a/usr/local/www/vpn_ipsec_phase2.php +++ b/usr/local/www/vpn_ipsec_phase2.php @@ -217,10 +217,14 @@ function change_mode() { value = document.iform.mode.options[index].value; if (value == 'tunnel') { document.getElementById('opt_localid').style.display = ''; + document.getElementById('opt_remoteid').style.display = ''; + } else { document.getElementById('opt_localid').style.display = 'none'; + document.getElementById('opt_remoteid').style.display = 'none'; + } } @@ -253,15 +257,7 @@ function typesel_change_local(bits) { } } - - -function typesel_change_remote(bits) { - - document.iform.remoteid_address.disabled = 1; - document.iform.remoteid_netbits.disabled = 1; -} - - + function typesel_change_remote(bits) { @@ -591,7 +587,9 @@ function change_protocol() { change_mode(''); change_protocol(''); typesel_change_local(); + typesel_change_remote(); + //--> -- cgit v1.1