Show/hide toggle

This commit is contained in:
PiBa-NL 2012-09-10 17:32:52 +02:00
parent 52b2726831
commit 32f8552e8a
2 changed files with 2 additions and 2 deletions

View File

@ -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>

View File

@ -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";
}
}
}