mirror of
https://github.com/NixOS/nix.git
synced 2025-11-15 23:12:44 +01:00
* Added an extra escape code to signal "unimportant" messages. If a tree only has
unimportant messages, it is collapsed by the default. * Also added an optional integer argument to the escape code for opening a nesting level to indicate lack of importance. If set, the tree is collapsed by default.
This commit is contained in:
parent
84c617966b
commit
3f3c4cce5a
3 changed files with 46 additions and 9 deletions
|
|
@ -5,13 +5,13 @@
|
|||
var idCounter = 0;
|
||||
|
||||
|
||||
function showTreeToggle(show,hide) {
|
||||
function showTreeToggle(isHidden) {
|
||||
if (document.getElementById) {
|
||||
var id = "toggle_" + idCounter;
|
||||
document.writeln(
|
||||
'<a href="javascript:toggleTree(\'' + id + '\')" class="toggle" id="' + id + '">' +
|
||||
'<span class="showTree" style="display: none;">+</span>' +
|
||||
'<span class="hideTree">-</span>' +
|
||||
'<span class="showTree" ' + (isHidden ? '' : 'style="display: none;"') + '>+</span>' +
|
||||
'<span class="hideTree" ' + (isHidden ? 'style="display: none;"' : '') + '>-</span>' +
|
||||
'</a>');
|
||||
idCounter = idCounter + 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue