templates/default/fulldoc/html/js/app.js in yard-0.9.8 vs templates/default/fulldoc/html/js/app.js in yard-0.9.9
- old
+ new
@@ -222,10 +222,15 @@
return false;
}, false);
}
function mainFocus() {
- $('#main')[0].focus();
+ var hash = window.location.hash;
+ if (hash !== '' && $(hash)[0]) {
+ $(hash)[0].scrollIntoView();
+ }
+
+ setTimeout(function() { $('#main').focus(); }, 10);
}
$(document).ready(function() {
navResizer();
navExpander();