diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-07-04 23:49:45 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-07-04 23:49:45 +0000 |
commit | 22abf2ef709d4e7907a2550e61eded3005aa4131 (patch) | |
tree | b97673d0d47dfba2655337e1a240e35e89286293 | |
parent | 7f5136cb46e20f4f51337574123dc3e143fba4cd (diff) | |
download | pfsense-22abf2ef709d4e7907a2550e61eded3005aa4131.zip pfsense-22abf2ef709d4e7907a2550e61eded3005aa4131.tar.gz |
Hide Show advanced option button when user clicks on the option
-rwxr-xr-x | usr/local/www/firewall_rules_edit.php | 6 | ||||
-rw-r--r-- | usr/local/www/javascript/firewall_rules_edit/firewall_rules_edit.js | 1 |
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() { |