summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/firewall_rules_edit.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-09-04 13:57:56 -0400
committerStephen Beaver <sbeaver@netgate.com>2015-09-04 13:57:56 -0400
commit580f21515621feaf7c90bb8ae60e3f80eaf36086 (patch)
tree5317c961486746b8dfaf9b2ae71b95faa82f2ae8 /src/usr/local/www/firewall_rules_edit.php
parent3f0efd5896c3a57592e4d8f4125418c4cab700eb (diff)
downloadpfsense-580f21515621feaf7c90bb8ae60e3f80eaf36086.zip
pfsense-580f21515621feaf7c90bb8ae60e3f80eaf36086.tar.gz
Fixed #5099
Corrected destination port group class
Diffstat (limited to 'src/usr/local/www/firewall_rules_edit.php')
-rw-r--r--src/usr/local/www/firewall_rules_edit.php16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/usr/local/www/firewall_rules_edit.php b/src/usr/local/www/firewall_rules_edit.php
index 4575364..5a979f5 100644
--- a/src/usr/local/www/firewall_rules_edit.php
+++ b/src/usr/local/www/firewall_rules_edit.php
@@ -1300,7 +1300,8 @@ foreach (['src' => 'Source', 'dst' => 'Destination'] as $type => $name) {
$portValues[$port] = $portName.' ('. $port .')';
$group = new Form_Group($name .' port range');
- $group->addClass('srcportrange');
+
+ $group->addClass($type . 'portrange');
$group->add(new Form_Select(
$type .'beginport',
@@ -1816,7 +1817,7 @@ events.push(function(){
hideClass('tcpflags', true);
}
- // Disable OS knob if the proto is not TCP.
+ // Disable OS if the proto is not TCP.
if ($('#proto').find(":selected").index() < 1) {
disableInput('os', false);
} else {
@@ -1849,7 +1850,7 @@ events.push(function(){
hideInput('icmp6type', true);
}
- if ($('#proto').find(":selected").index() >= 0 && $('#proto').find(":selected").index() <= 2) {
+ if ($('#proto').find(":selected").index() <= 2) {
hideClass('dstprtr', false);
hideClass('srcprtr', false);
} else {
@@ -1867,16 +1868,19 @@ events.push(function(){
}
// On initial page load
+ proto_change();
+
ext_change();
+
typesel_change();
- proto_change();
+
hideClass('advanced-options', true);
hideClass('srcportrange', true);
-
+
<?php if ((!empty($pconfig['srcbeginport']) && $pconfig['srcbeginport'] != "any") || (!empty($pconfig['srcendport']) && $pconfig['srcendport'] != "any")): ?>
show_source_port_range();
<?php endif; ?>
-
+
// Make it a regular button, not a submit
$('#toggle-advanced').prop('type','button');
$("#btnsrcadv").prop('type','button');
OpenPOWER on IntegriCloud