summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorVinicius Coque <vinicius.coque@bluepex.com>2010-08-13 13:48:54 -0300
committerVinicius Coque <vinicius.coque@bluepex.com>2010-08-13 13:49:16 -0300
commitd886ebd6d438cf9b397face67ed4f254de661a94 (patch)
tree1456436c27dc9090421bba5e9c2b7df7298b28bf /usr/local
parentbfa790df99cc92d974f17e3d63ac346a90c8d28a (diff)
downloadpfsense-d886ebd6d438cf9b397face67ed4f254de661a94.zip
pfsense-d886ebd6d438cf9b397face67ed4f254de661a94.tar.gz
Shows source ports when they are already defined
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/firewall_rules_edit.php1
-rw-r--r--usr/local/www/javascript/firewall_rules_edit/firewall_rules_edit.js6
2 files changed, 5 insertions, 2 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php
index 95e844d..3cc5bad 100755
--- a/usr/local/www/firewall_rules_edit.php
+++ b/usr/local/www/firewall_rules_edit.php
@@ -1381,6 +1381,7 @@ include("head.inc");
ext_change();
typesel_change();
proto_change();
+ show_source_port_range();
<?php
$isfirst = 0;
diff --git a/usr/local/www/javascript/firewall_rules_edit/firewall_rules_edit.js b/usr/local/www/javascript/firewall_rules_edit/firewall_rules_edit.js
index ae49a2a..3ce0b64 100644
--- a/usr/local/www/javascript/firewall_rules_edit/firewall_rules_edit.js
+++ b/usr/local/www/javascript/firewall_rules_edit/firewall_rules_edit.js
@@ -44,8 +44,10 @@ function ext_change() {
}
function show_source_port_range() {
- document.getElementById("sprtable").style.display = '';
- document.getElementById("showadvancedboxspr").style.display = 'none';
+ if(portsenabled) {
+ document.getElementById("sprtable").style.display = '';
+ document.getElementById("showadvancedboxspr").style.display = 'none';
+ }
}
function typesel_change() {
OpenPOWER on IntegriCloud