From f77f797f8c7016a5748acfcf934a2c54d15af765 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Tue, 24 Aug 2021 11:31:29 +0200 Subject: [mod] simple theme: fix eslint errors, fix VIM keys * VIM keys: fix the next page and previous pages (n, p keys) * Map: Enable the wikipedia map (the layer was initialized but not included) --- searx/static/themes/simple/src/js/main/searx_search.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'searx/static/themes/simple/src/js/main/searx_search.js') diff --git a/searx/static/themes/simple/src/js/main/searx_search.js b/searx/static/themes/simple/src/js/main/searx_search.js index 0e498717c..235262b37 100644 --- a/searx/static/themes/simple/src/js/main/searx_search.js +++ b/searx/static/themes/simple/src/js/main/searx_search.js @@ -14,6 +14,7 @@ * * (C) 2017 by Alexandre Flament, */ +/* global AutoComplete */ (function(w, d, searx) { 'use strict'; @@ -56,7 +57,7 @@ searx.ready(function() { qinput = d.getElementById(qinput_id); - function placeCursorAtEndOnce(e) { + function placeCursorAtEndOnce() { if (firstFocus) { placeCursorAtEnd(qinput); firstFocus = false; @@ -98,7 +99,7 @@ if (qinput !== null && searx.search_on_category_select) { d.querySelector('.help').className='invisible'; - searx.on('#categories input', 'change', function(e) { + searx.on('#categories input', 'change', function() { var i, categories = d.querySelectorAll('#categories input[type="checkbox"]'); for(i=0; i