Project

General

Profile

« Previous | Next » 

Revision bcbcc2f8

Added by Erik Fonnesbeck about 15 years ago

Use client-side values in the function call rather than PHP-generated values for further calls to this client-side function.

View differences:

usr/local/www/firewall_nat_edit.php
448 448
		<tr>
449 449
                  <td width="22%" valign="top" class="vncellreq">Interface</td>
450 450
                  <td width="78%" class="vtable">
451
					<select name="interface" class="formselect" onChange="dst_change(this.value,'<?=$pconfig['interface']?>','<?=$pconfig['dst']?>');typesel_change();">
451
					<select name="interface" class="formselect" onChange="dst_change(this.value,iface_old,document.iform.dsttype.value);iface_old = document.iform.interface.value;typesel_change();">
452 452
						<?php
453 453

  
454 454
						$iflist = get_configured_interface_with_descr(false, true);
......
805 805
<!--
806 806
	ext_change();
807 807
	dst_change(document.iform.interface.value,'<?=$pconfig['interface']?>','<?=$pconfig['dst']?>');
808
	var iface_old = document.iform.interface.value;
808 809
	typesel_change();
809 810
	proto_change();
810 811
	<?php if ($pconfig['srcnot'] || $pconfig['src'] != "any" || $pconfig['srcbeginport'] != "any" || $pconfig['srcendport'] != "any"): ?>

Also available in: Unified diff