]> git.saurik.com Git - wxWidgets.git/blobdiff - docs/doxygen/wxwidgets.js
fix typo (see #10637)
[wxWidgets.git] / docs / doxygen / wxwidgets.js
index 7b02c0aae607948b412fbeccbe2379fcf2afdf44..d84be5057ff8ab06825a170e9f481339d5f2ca73 100644 (file)
@@ -66,14 +66,15 @@ window.onload = function myinitDynSections()
       header.style.cursor='pointer';\r
       header.onclick=mychangeDisplayState;\r
       header.id='dynheader'+sectionCounter;\r
-      button.src='closed.gif';\r
       section.id='dynsection'+sectionCounter;\r
 \r
       var display = getCookie( 'sectionDiv.style.display' );\r
-      if ( display == '' ){\r
+      if ( display == '' || display == 'block' ){\r
         section.style.display='block'; // default\r
+        button.src='open.gif';\r
       }else{\r
-        section.style.display=display;\r
+        section.style.display='none';\r
+        button.src='closed.gif';\r
       }\r
       setCookie( 'sectionDiv.style.display', section.style.display );\r
 \r