Project

General

Profile

« Previous | Next » 

Revision 71880c96

Added by Pierre POMES almost 15 years ago

Do not include 'remoteid' javascript functions for mobile ipsec. Ticket #797

View differences:

usr/local/www/vpn_ipsec_phase2.php
217 217
	value = document.iform.mode.options[index].value;
218 218
	if (value == 'tunnel') {
219 219
		document.getElementById('opt_localid').style.display = '';
220
<?php if (!isset($pconfig['mobile'])): ?>
220 221
		document.getElementById('opt_remoteid').style.display = '';
222
<?php endif; ?>
221 223
	} else {
222 224
		document.getElementById('opt_localid').style.display = 'none';
225
<?php if (!isset($pconfig['mobile'])): ?>
223 226
		document.getElementById('opt_remoteid').style.display = 'none';
227
<?php endif; ?>
224 228
	}
225 229
}
226 230

  
......
253 257
	}
254 258
}
255 259

  
256
<?php if (isset($pconfig['mobile'])): ?>
257

  
258
function typesel_change_remote(bits) {
259

  
260
	document.iform.remoteid_address.disabled = 1;
261
	document.iform.remoteid_netbits.disabled = 1;
262
}
263

  
264
<?php else: ?>
260
<?php if (!isset($pconfig['mobile'])): ?>
265 261

  
266 262
function typesel_change_remote(bits) {
267 263

  
......
591 587
change_mode('<?=$pconfig['mode']?>');
592 588
change_protocol('<?=$pconfig['proto']?>');
593 589
typesel_change_local(<?=$pconfig['localid_netbits']?>);
590
<?php if (!isset($pconfig['mobile'])): ?>
594 591
typesel_change_remote(<?=$pconfig['remoteid_netbits']?>);
592
<?php endif; ?>
595 593
//-->
596 594
</script>
597 595
<?php include("fend.inc"); ?>

Also available in: Unified diff