diff options
author | Carlos Eduardo Ramos <carlos.ramos@bluepex.com> | 2010-04-20 10:55:40 -0300 |
---|---|---|
committer | Carlos Eduardo Ramos <carlos.ramos@bluepex.com> | 2010-04-20 10:55:40 -0300 |
commit | eab43804735bb197d46eeb2c5ba3191c80a10610 (patch) | |
tree | 3f3dd3dd237c32e4067bac89b2259423a1db30e3 /usr/local | |
parent | 2bc256a9fd925933d51d82680068b8a28d7b1e54 (diff) | |
download | pfsense-eab43804735bb197d46eeb2c5ba3191c80a10610.zip pfsense-eab43804735bb197d46eeb2c5ba3191c80a10610.tar.gz |
changed destination type according to the selected interface
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/firewall_nat_edit.php | 2 | ||||
-rw-r--r-- | usr/local/www/javascript/firewall_nat_edit/firewall_nat_edit.js | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/usr/local/www/firewall_nat_edit.php b/usr/local/www/firewall_nat_edit.php index 93fffb0..dab9c9c 100755 --- a/usr/local/www/firewall_nat_edit.php +++ b/usr/local/www/firewall_nat_edit.php @@ -444,7 +444,7 @@ include("fbegin.inc"); ?> <tr> <td width="22%" valign="top" class="vncellreq">Interface</td> <td width="78%" class="vtable"> - <select name="interface" class="formselect"> + <select name="interface" class="formselect" onChange="change_dst(this.value);typesel_change();"> <?php $iflist = get_configured_interface_with_descr(false, true); diff --git a/usr/local/www/javascript/firewall_nat_edit/firewall_nat_edit.js b/usr/local/www/javascript/firewall_nat_edit/firewall_nat_edit.js index 3cb7952..70ee80f 100644 --- a/usr/local/www/javascript/firewall_nat_edit/firewall_nat_edit.js +++ b/usr/local/www/javascript/firewall_nat_edit/firewall_nat_edit.js @@ -176,4 +176,8 @@ function src_rep_change() { function dst_rep_change() { document.iform.dstendport.selectedIndex = document.iform.dstbeginport.selectedIndex; } + +function change_dst( iface ) { + document.iform.dsttype.value = iface.concat("ip"); +} //--> |