X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/20a886a34a131b8dfb3939172348bcc955d34a5d..ae901b234c4a0aa7c1777b3bd181dd7f8517ad21:/docs/doxygen/wxwidgets.js diff --git a/docs/doxygen/wxwidgets.js b/docs/doxygen/wxwidgets.js index b8586601f3..d84be5057f 100644 --- a/docs/doxygen/wxwidgets.js +++ b/docs/doxygen/wxwidgets.js @@ -1,3 +1,11 @@ +/***************************************************************************** + ** Name: wxwidgets.js + ** Purpose: The wxWidgets documentation javascript + ** Author: Doxygen team + ** RCS-ID: $Id$ + ** Licence: wxWindows license + *****************************************************************************/ + // from w3schools function getCookie(c_name) { @@ -5,12 +13,12 @@ function getCookie(c_name) { c_start=document.cookie.indexOf(c_name + "="); if (c_start!=-1) - { - c_start=c_start + c_name.length+1; + { + c_start=c_start + c_name.length+1; c_end=document.cookie.indexOf(";",c_start); if (c_end==-1) c_end=document.cookie.length; return unescape(document.cookie.substring(c_start,c_end)); - } + } } return ""; } @@ -58,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 );