diff options
author | PiBa-NL <pba_2k3@yahoo.com> | 2012-09-10 17:32:52 +0200 |
---|---|---|
committer | PiBa-NL <pba_2k3@yahoo.com> | 2012-09-10 17:32:52 +0200 |
commit | 32f8552e8a3fc10ef8dec0f325189e4fcc295fcf (patch) | |
tree | a6e8169ac85fb84bfea743d2bcd457d4923b603b /usr | |
parent | 52b2726831c2f170b563ce7e579ffcaf24e17049 (diff) | |
download | pfsense-32f8552e8a3fc10ef8dec0f325189e4fcc295fcf.zip pfsense-32f8552e8a3fc10ef8dec0f325189e4fcc295fcf.tar.gz |
Show/hide toggle
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/diag_logs_filter.php | 2 | ||||
-rw-r--r-- | usr/local/www/javascript/filter_log.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/diag_logs_filter.php b/usr/local/www/diag_logs_filter.php index a34e0a2..ce076ab 100755 --- a/usr/local/www/diag_logs_filter.php +++ b/usr/local/www/diag_logs_filter.php @@ -130,7 +130,7 @@ include("head.inc"); <?=gettext("Normal View");?> | <a href="diag_logs_filter_dynamic.php"><?=gettext("Dynamic View");?></a> | <a href="diag_logs_filter_summary.php"><?=gettext("Summary View");?></a> <br/><br/> <?php if (isset($config['syslog']['filterdescriptions']) && $config['syslog']['filterdescriptions'] === "2"):?> - <a href="#" onclick="showRuleDescriptions()">Show rule descriptions</a> + <a href="#" onclick="showRuleDescriptions()">Show/hide rule descriptions</a> <?php endif;?> <br/> </div> diff --git a/usr/local/www/javascript/filter_log.js b/usr/local/www/javascript/filter_log.js index 3bfab6b..1acb5c2 100644 --- a/usr/local/www/javascript/filter_log.js +++ b/usr/local/www/javascript/filter_log.js @@ -127,7 +127,7 @@ function showRuleDescriptions(){ var rules = ss[i].cssRules || ss[i].rules; for (var j=0; j<rules.length; j++) { if (rules[j].selectorText === ".listFirewall") { - rules[j].style.display = "table-cell"; + rules[j].style.display = rules[j].style.display === "none" ? "table-cell" : "none"; } } } |