summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-07-04 23:49:45 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-07-04 23:49:45 +0000
commit22abf2ef709d4e7907a2550e61eded3005aa4131 (patch)
treeb97673d0d47dfba2655337e1a240e35e89286293
parent7f5136cb46e20f4f51337574123dc3e143fba4cd (diff)
downloadpfsense-22abf2ef709d4e7907a2550e61eded3005aa4131.zip
pfsense-22abf2ef709d4e7907a2550e61eded3005aa4131.tar.gz
Hide Show advanced option button when user clicks on the option
-rwxr-xr-xusr/local/www/firewall_rules_edit.php6
-rw-r--r--usr/local/www/javascript/firewall_rules_edit/firewall_rules_edit.js1
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 2536cd9..0683beb 100755
--- a/usr/local/www/firewall_rules_edit.php
+++ b/usr/local/www/firewall_rules_edit.php
@@ -473,8 +473,10 @@ include("head.inc");
</td>
</tr>
</table>
- <p>
- <a href="#" onClick="show_source_port_range();">Advanced - Show source port range</a>
+ <div id="showadvancedboxspr">
+ <p>
+ <a href="#" onClick="show_source_port_range();">Advanced - Show source port range</a>
+ </div>
</td>
</tr>
<tr style="display:none" id="sourceportrangetable" name="sourceportrangetable">
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 c9b9ca9..ba2f0e3 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
@@ -42,6 +42,7 @@ function ext_change() {
function show_source_port_range() {
document.getElementById("sourceportrangetable").style.display = "table-row";
+ document.getElementById("showadvancedboxspr").innerHTML='';
}
function typesel_change() {
OpenPOWER on IntegriCloud