Skip to content

Commit

Permalink
Fix linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Apr 17, 2024
1 parent 6ef218a commit d63f55d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions mkdocs/themes/mkdocs/js/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ function applyTopPadding() {
}

document.addEventListener("DOMContentLoaded", function () {
var search_term = getSearchTerm()
var search_modal = new bootstrap.Modal(document.getElementById('mkdocs_search_modal'))
var search_term = getSearchTerm();
var search_modal = new bootstrap.Modal(document.getElementById('mkdocs_search_modal'));
var keyboard_modal = new bootstrap.Modal(document.getElementById('mkdocs_keyboard_modal'));

if (search_term) {
Expand Down Expand Up @@ -155,10 +155,10 @@ var scrollSpy = new bootstrap.ScrollSpy(document.body, {
});

/* Prevent disabled links from causing a page reload */
document.querySelectorAll("li.disabled a").forEach(item => {
item.addEventListener("click", ev => {
ev.preventDefault()
})
document.querySelectorAll("li.disabled a").forEach(function(item) {
item.addEventListener("click", function(event) {
event.preventDefault();
});
});

// See https://www.cambiaresearch.com/articles/15/javascript-char-codes-key-codes
Expand Down

0 comments on commit d63f55d

Please sign in to comment.