about summary refs log tree commit diff
path: root/src/log2xml/treebits.js
diff options
context:
space:
mode:
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;
     }