Merge branch 'bugfix/page-scrolling' into improvement/navigation-new

# Conflicts:
#	_layouts/default.html
#	assets/js/just-the-docs.js
This commit is contained in:
Silvio Giebl
2020-06-15 21:44:30 +02:00
4 changed files with 122 additions and 165 deletions

View File

@@ -306,13 +306,6 @@ function initSearch() {
}
{%- endif %}
// Focus
function pageFocus() {
var mainWrap = document.getElementById('main-wrap');
mainWrap.focus();
}
// Switch theme
jtd.getTheme = function() {
@@ -329,7 +322,6 @@ jtd.setTheme = function(theme) {
jtd.onReady(function(){
initNav();
pageFocus();
{% if site.search_enabled != false -%}
initSearch();
{%- endif %}