about summary refs log tree commit diff
path: root/src/log2xml/treebits.js
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2004-03-18T21·04+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2004-03-18T21·04+0000
commit3f3c4cce5a6552016a040999f64dc989d203a9ef (patch)
treec6b57dfa79f336a746bddb8110132b312da375e5 /src/log2xml/treebits.js
parent84c617966b8a78b7385aff04f1ac9b3bb7391898 (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.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/log2xml/treebits.js b/src/log2xml/treebits.js
index ffd18fbb18ec..3011b391d88b 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;
     }