diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-07-05 02:52:10 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-07-05 02:52:10 +0000 |
commit | 197b2a47a9d171563a406d2882831c7b962f6a66 (patch) | |
tree | 87f3cb4818d417ad11e93694e80f60c3bff6475d /usr | |
parent | 47042140c9e360fafc832e63b434ab34bb008e48 (diff) | |
download | pfsense-197b2a47a9d171563a406d2882831c7b962f6a66.zip pfsense-197b2a47a9d171563a406d2882831c7b962f6a66.tar.gz |
Turn advanced option are into a default to no show area as well.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/firewall_rules_edit.php | 5 | ||||
-rw-r--r-- | usr/local/www/javascript/firewall_rules_edit/firewall_rules_edit.js | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php index 4fa9ee4..9f6d23b 100755 --- a/usr/local/www/firewall_rules_edit.php +++ b/usr/local/www/firewall_rules_edit.php @@ -647,6 +647,10 @@ include("head.inc"); <tr> <td width="22%" valign="top" class="vncell">Advanced Options</td> <td width="78%" class="vtable"> + <div id="aoadv" name="aoadv"> + <input type="button" onClick="show_aodiv();" value="Advanced"> + </div> + <div id="aodivmain" name="aodivmain" style="display:none"> <input name="max-src-nodes" id="max-src-nodes" value="<?php echo $pconfig['max-src-nodes'] ?>"><br> Simultaneous client connection limit<p> <input name="max-src-states" id="max-src-states" value="<?php echo $pconfig['max-src-states'] ?>"><br> Maximum state entries per host<p> <input name="max-src-conn-rate" id="max-src-conn-rate" value="<?php echo $pconfig['max-src-conn-rate'] ?>"> / @@ -665,6 +669,7 @@ include("head.inc"); <p /> <p><strong>NOTE: Leave these fields blank to disable this feature.</strong> + </div> </td> </tr> <tr> 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 c24f243..e0774fc 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 @@ -119,6 +119,12 @@ function proto_change() { } } +function show_aodiv() { + document.getElementById("aoadv").innerHTML=''; + aodiv = document.getElementById('aodivmain'); + aodiv.style.display = "block"; +} + function src_rep_change() { document.iform.srcendport.selectedIndex = document.iform.srcbeginport.selectedIndex; } @@ -126,8 +132,6 @@ function dst_rep_change() { document.iform.dstendport.selectedIndex = document.iform.dstbeginport.selectedIndex; } - - window.onload = function () { var oTextbox1 = new AutoSuggestControl(document.getElementById("src"), new StateSuggestions(addressarray)); var oTextbox2 = new AutoSuggestControl(document.getElementById("srcbeginport_cust"), new StateSuggestions(customarray)); |