doc/js/app.js in gqli-0.6.1 vs doc/js/app.js in gqli-1.0.0

- old
+ new

@@ -273,10 +273,20 @@ } setTimeout(function() { $('#main').focus(); }, 10); } +function navigationChange() { + // This works around the broken anchor navigation with the YARD template. + window.onpopstate = function() { + var hash = window.location.hash; + if (hash !== '' && $(hash)[0]) { + $(hash)[0].scrollIntoView(); + } + }; +} + $(document).ready(function() { navResizer(); navExpander(); createSourceLinks(); createDefineLinks(); @@ -285,8 +295,9 @@ linkSummaries(); summaryToggle(); constantSummaryToggle(); generateTOC(); mainFocus(); + navigationChange(); }); })();