Revision 32f8552e
Added by Pi Ba almost 13 years ago
usr/local/www/diag_logs_filter.php | ||
---|---|---|
130 | 130 |
<?=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> |
131 | 131 |
<br/><br/> |
132 | 132 |
<?php if (isset($config['syslog']['filterdescriptions']) && $config['syslog']['filterdescriptions'] === "2"):?> |
133 |
<a href="#" onclick="showRuleDescriptions()">Show rule descriptions</a> |
|
133 |
<a href="#" onclick="showRuleDescriptions()">Show/hide rule descriptions</a>
|
|
134 | 134 |
<?php endif;?> |
135 | 135 |
<br/> |
136 | 136 |
</div> |
usr/local/www/javascript/filter_log.js | ||
---|---|---|
127 | 127 |
var rules = ss[i].cssRules || ss[i].rules; |
128 | 128 |
for (var j=0; j<rules.length; j++) { |
129 | 129 |
if (rules[j].selectorText === ".listFirewall") { |
130 |
rules[j].style.display = "table-cell";
|
|
130 |
rules[j].style.display = rules[j].style.display === "none" ? "table-cell" : "none";
|
|
131 | 131 |
} |
132 | 132 |
} |
133 | 133 |
} |
Also available in: Unified diff
Show/hide toggle