webmcp

changeset 391:a932b94a8490

Reset window.location.hash after collapsing/expanding sections in autodoc reference
author jbe
date Thu Dec 03 18:32:43 2015 +0100 (2015-12-03)
parents ed910089a0c5
children c048f0af2497
files doc/autodoc-header.htmlpart
line diff
     1.1 --- a/doc/autodoc-header.htmlpart	Thu Dec 03 18:26:49 2015 +0100
     1.2 +++ b/doc/autodoc-header.htmlpart	Thu Dec 03 18:32:43 2015 +0100
     1.3 @@ -14,11 +14,16 @@
     1.4            }
     1.5          }
     1.6        }
     1.7 +      var inProgress = false;
     1.8        window.onload = window.onhashchange = function() {
     1.9 +        if (inProgress) return;
    1.10          for (var ident in expandedSections) toggleSection(ident);
    1.11          var hash = window.location.hash;
    1.12          if (hash) {
    1.13            toggleSection(hash.replace(/^#/, ''));
    1.14 +          inProgress = true;
    1.15 +          window.location.hash = hash;  // required after collapsing/expanding
    1.16 +          inProgress = false;
    1.17          }
    1.18        };
    1.19      </script>

Impressum / About Us