mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix #3103, cleanup ports fields when protocol changes
This commit is contained in:
parent
140ed85e94
commit
7fa503d8f2
@ -718,7 +718,7 @@ include("fbegin.inc"); ?>
|
||||
<tr>
|
||||
<td><?=gettext("from:"); ?> </td>
|
||||
<td>
|
||||
<select name="dstbeginport" class="formselect" onchange="dst_rep_change();ext_change()">
|
||||
<select name="dstbeginport" id="dstbeginport" class="formselect" onchange="dst_rep_change();ext_change()">
|
||||
<option value="">(<?=gettext("other"); ?>)</option>
|
||||
<?php $bfound = 0;
|
||||
foreach ($wkports as $wkport => $wkportdesc): ?>
|
||||
@ -731,7 +731,7 @@ include("fbegin.inc"); ?>
|
||||
<tr>
|
||||
<td><?=gettext("to:"); ?></td>
|
||||
<td>
|
||||
<select name="dstendport" class="formselect" onchange="ext_change()">
|
||||
<select name="dstendport" id="dstendport" class="formselect" onchange="ext_change()">
|
||||
<option value="">(<?=gettext("other"); ?>)</option>
|
||||
<?php $bfound = 0;
|
||||
foreach ($wkports as $wkport => $wkportdesc): ?>
|
||||
@ -761,7 +761,7 @@ include("fbegin.inc"); ?>
|
||||
<tr name="lprtr" id="lprtr">
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Redirect target port"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name="localbeginport" class="formselect" onchange="ext_change();check_for_aliases();">
|
||||
<select name="localbeginport" id="localbeginport" class="formselect" onchange="ext_change();check_for_aliases();">
|
||||
<option value="">(<?=gettext("other"); ?>)</option>
|
||||
<?php $bfound = 0; foreach ($wkports as $wkport => $wkportdesc): ?>
|
||||
<option value="<?=$wkport;?>" <?php if ($wkport == $pconfig['localbeginport']) {
|
||||
|
||||
@ -138,6 +138,12 @@ function proto_change() {
|
||||
document.getElementById("sprtable").style.display = 'none';
|
||||
document.getElementById("dprtr").style.display = 'none';
|
||||
document.getElementById("lprtr").style.display = 'none';
|
||||
document.getElementById("dstbeginport").selectedIndex = 0;
|
||||
document.getElementById("dstbeginport_cust").value = "";
|
||||
document.getElementById("dstendport").selectedIndex = 0;
|
||||
document.getElementById("dstendport_cust").value = "";
|
||||
document.getElementById("localbeginport").selectedIndex = 0;
|
||||
document.getElementById("localbeginport_cust").value = "";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user