summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-03 23:20:01 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-03 23:20:01 +0000
commit65465a3ce2b0e17c0cc0b8556a7bab30150169bf (patch)
treef26306b716287968a290fb777e0ae5a21053e332 /usr/local
parentd2adfeddc56ee1c16c5f1971076c67755fddc120 (diff)
downloadpfsense-65465a3ce2b0e17c0cc0b8556a7bab30150169bf.zip
pfsense-65465a3ce2b0e17c0cc0b8556a7bab30150169bf.tar.gz
Toggle OS dropdown off and on when a TCP rule is enabled or disabled.
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/firewall_rules_edit.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php
index 37c6021..fc88a39 100755
--- a/usr/local/www/firewall_rules_edit.php
+++ b/usr/local/www/firewall_rules_edit.php
@@ -446,6 +446,13 @@ function proto_change() {
portsenabled = 0;
}
+ /* Disable OS knob if the proto is not TCP. */
+ if (document.iform.proto.selectedIndex < 1) {
+ document.forms[0].os.disabled = 0;
+ } else {
+ document.forms[0].os.disabled = 1;
+ }
+
if (document.iform.proto.selectedIndex == 3) {
document.iform.icmptype.disabled = 0;
} else {
@@ -645,7 +652,7 @@ Hint: the difference between block and reject is that with reject, a packet (TCP
<tr>
<td width="22%" valign="top" class="vncellreq">Source OS</td>
<td width="78%" class="vtable">OS Type:&nbsp;
- <select name="os" class="formfld">
+ <select name="os" id="os" class="formfld">
<?php
$ostypes = array(
"" => "any",
OpenPOWER on IntegriCloud