From 797c0bde0dff94f13d71f9623790558d795f0c3b Mon Sep 17 00:00:00 2001 From: Bryan Petty Date: Tue, 27 Jan 2009 18:40:23 +0000 Subject: [PATCH] Fixed the class diagrams javascript to initialize the dropdown button image to the correct image. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/doxygen/wxwidgets.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/doxygen/wxwidgets.js b/docs/doxygen/wxwidgets.js index 7b02c0aae6..d84be5057f 100644 --- a/docs/doxygen/wxwidgets.js +++ b/docs/doxygen/wxwidgets.js @@ -66,14 +66,15 @@ window.onload = function myinitDynSections() header.style.cursor='pointer'; header.onclick=mychangeDisplayState; header.id='dynheader'+sectionCounter; - button.src='closed.gif'; section.id='dynsection'+sectionCounter; var display = getCookie( 'sectionDiv.style.display' ); - if ( display == '' ){ + if ( display == '' || display == 'block' ){ section.style.display='block'; // default + button.src='open.gif'; }else{ - section.style.display=display; + section.style.display='none'; + button.src='closed.gif'; } setCookie( 'sectionDiv.style.display', section.style.display ); -- 2.47.2