summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2010-05-14 15:42:43 -0600
committerErik Fonnesbeck <efonnes@gmail.com>2010-05-14 15:42:43 -0600
commitbcbcc2f815a789bd7eb476d8a7df25674eaba8b1 (patch)
tree2ca1391dadbc388238b0f18d2a288bb75c05202b /usr/local
parent07b54e8cf72ce96d5a38691636e5c7b0ffb97374 (diff)
downloadpfsense-bcbcc2f815a789bd7eb476d8a7df25674eaba8b1.zip
pfsense-bcbcc2f815a789bd7eb476d8a7df25674eaba8b1.tar.gz
Use client-side values in the function call rather than PHP-generated values for further calls to this client-side function.
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/firewall_nat_edit.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/firewall_nat_edit.php b/usr/local/www/firewall_nat_edit.php
index 2b415ec..11744ae 100755
--- a/usr/local/www/firewall_nat_edit.php
+++ b/usr/local/www/firewall_nat_edit.php
@@ -448,7 +448,7 @@ include("fbegin.inc"); ?>
<tr>
<td width="22%" valign="top" class="vncellreq">Interface</td>
<td width="78%" class="vtable">
- <select name="interface" class="formselect" onChange="dst_change(this.value,'<?=$pconfig['interface']?>','<?=$pconfig['dst']?>');typesel_change();">
+ <select name="interface" class="formselect" onChange="dst_change(this.value,iface_old,document.iform.dsttype.value);iface_old = document.iform.interface.value;typesel_change();">
<?php
$iflist = get_configured_interface_with_descr(false, true);
@@ -805,6 +805,7 @@ include("fbegin.inc"); ?>
<!--
ext_change();
dst_change(document.iform.interface.value,'<?=$pconfig['interface']?>','<?=$pconfig['dst']?>');
+ var iface_old = document.iform.interface.value;
typesel_change();
proto_change();
<?php if ($pconfig['srcnot'] || $pconfig['src'] != "any" || $pconfig['srcbeginport'] != "any" || $pconfig['srcendport'] != "any"): ?>
OpenPOWER on IntegriCloud