make code blocks open on first click instead of second
authorStefan Behnel <stefan_ml@behnel.de>
Sun, 1 Sep 2013 20:29:34 +0000 (22:29 +0200)
committerStefan Behnel <stefan_ml@behnel.de>
Sun, 1 Sep 2013 20:29:34 +0000 (22:29 +0200)
Cython/Compiler/Annotate.py

index 65796ca..bb795cd 100644 (file)
@@ -122,7 +122,7 @@ body { font-family: courier; font-size: 12; }
 <script>
 function toggleDiv(id) {
     theDiv = document.getElementById(id);
-    if (theDiv.style.display == 'none') theDiv.style.display = 'block';
+    if (theDiv.style.display != 'block') theDiv.style.display = 'block';
     else theDiv.style.display = 'none';
 }
 </script>