diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-03-18 21:04:14 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-03-18 21:04:14 +0000 |
commit | 3f3c4cce5a6552016a040999f64dc989d203a9ef (patch) | |
tree | c6b57dfa79f336a746bddb8110132b312da375e5 /src/log2xml/treebits.js | |
parent | 84c617966b8a78b7385aff04f1ac9b3bb7391898 (diff) |
* 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.
Diffstat (limited to 'src/log2xml/treebits.js')
-rw-r--r-- | src/log2xml/treebits.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/log2xml/treebits.js b/src/log2xml/treebits.js index ffd18fbb1..3011b391d 100644 --- a/src/log2xml/treebits.js +++ b/src/log2xml/treebits.js @@ -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; } |