mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-09-12 21:03:32 -06:00
Merge branch 'bugfix/page-scrolling' into improvement/navigation-new
# Conflicts: # _layouts/default.html # assets/js/just-the-docs.js
This commit is contained in:
@@ -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 %}
|
||||
|
Reference in New Issue
Block a user