[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)
This commit is contained in:
Alexandre Flament
2021-08-24 11:31:29 +02:00
parent 183c856396
commit f77f797f8c
7 changed files with 56 additions and 50 deletions
@@ -14,6 +14,7 @@
*
* (C) 2017 by Alexandre Flament, <alex@al-f.net>
*/
/* 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<categories.length; i++) {
if (categories[i] !== this && categories[i].checked) {