# HG changeset patch # User jbe # Date 1449163963 -3600 # Node ID a932b94a84901dc066ca17acb56773c8eb2f7f0d # Parent ed910089a0c5cfc9e3feb902253faee1e09d1c8f Reset window.location.hash after collapsing/expanding sections in autodoc reference diff -r ed910089a0c5 -r a932b94a8490 doc/autodoc-header.htmlpart --- a/doc/autodoc-header.htmlpart Thu Dec 03 18:26:49 2015 +0100 +++ b/doc/autodoc-header.htmlpart Thu Dec 03 18:32:43 2015 +0100 @@ -14,11 +14,16 @@ } } } + var inProgress = false; window.onload = window.onhashchange = function() { + if (inProgress) return; for (var ident in expandedSections) toggleSection(ident); var hash = window.location.hash; if (hash) { toggleSection(hash.replace(/^#/, '')); + inProgress = true; + window.location.hash = hash; // required after collapsing/expanding + inProgress = false; } };