diff options
author | pierrepomes <pierre.pomes@interface-tech.com> | 2010-10-17 10:35:15 -0400 |
---|---|---|
committer | pierrepomes <pierre.pomes@interface-tech.com> | 2010-10-17 10:35:58 -0400 |
commit | 71880c969c81bf502e1047812691aff1ead399b4 (patch) | |
tree | 4bc5158caae88cd85d064b8596c086ff6edb925a /usr | |
parent | 659963994dce689bdaaa5cdd83bc77008737d92a (diff) | |
download | pfsense-71880c969c81bf502e1047812691aff1ead399b4.zip pfsense-71880c969c81bf502e1047812691aff1ead399b4.tar.gz |
Do not include 'remoteid' javascript functions for mobile ipsec. Ticket #797
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/vpn_ipsec_phase2.php | 16 |
1 files 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 = ''; +<?php if (!isset($pconfig['mobile'])): ?> document.getElementById('opt_remoteid').style.display = ''; +<?php endif; ?> } else { document.getElementById('opt_localid').style.display = 'none'; +<?php if (!isset($pconfig['mobile'])): ?> document.getElementById('opt_remoteid').style.display = 'none'; +<?php endif; ?> } } @@ -253,15 +257,7 @@ function typesel_change_local(bits) { } } -<?php if (isset($pconfig['mobile'])): ?> - -function typesel_change_remote(bits) { - - document.iform.remoteid_address.disabled = 1; - document.iform.remoteid_netbits.disabled = 1; -} - -<?php else: ?> +<?php if (!isset($pconfig['mobile'])): ?> function typesel_change_remote(bits) { @@ -591,7 +587,9 @@ function change_protocol() { change_mode('<?=$pconfig['mode']?>'); change_protocol('<?=$pconfig['proto']?>'); typesel_change_local(<?=$pconfig['localid_netbits']?>); +<?php if (!isset($pconfig['mobile'])): ?> typesel_change_remote(<?=$pconfig['remoteid_netbits']?>); +<?php endif; ?> //--> </script> <?php include("fend.inc"); ?> |