mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Show/hide toggle
This commit is contained in:
parent
52b2726831
commit
32f8552e8a
@ -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>
|
||||
|
||||
@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user