Make eslint black and ymllint happy

This commit is contained in:
Solirs 2023-03-02 14:46:25 +01:00
parent 1d969c53b2
commit 6a80f1acc7
3 changed files with 5 additions and 5 deletions

View file

@ -109,7 +109,8 @@ ui:
query_in_title: false query_in_title: false
# infinite_scroll: When true, automatically loads the next page when scrolling to bottom of the current page. # infinite_scroll: When true, automatically loads the next page when scrolling to bottom of the current page.
infinite_scroll: false infinite_scroll: false
# search_on_autocomplete_click: When true, start a search when an autocomplete suggestion is clicked instead of simply filling the search bar with it. # search_on_autocomplete_click: When true, start a search when an autocomplete suggestion is clicked
# instead of simply filling the search bar with it.
search_on_autocomplete_click: true search_on_autocomplete_click: true
# ui theme # ui theme
default_theme: simple default_theme: simple

View file

@ -199,7 +199,7 @@ SCHEMA = {
'query_in_title': SettingsValue(bool, False), 'query_in_title': SettingsValue(bool, False),
'infinite_scroll': SettingsValue(bool, False), 'infinite_scroll': SettingsValue(bool, False),
'cache_url': SettingsValue(str, 'https://web.archive.org/web/'), 'cache_url': SettingsValue(str, 'https://web.archive.org/web/'),
"search_on_autocomplete_click": SettingsValue(bool, True) "search_on_autocomplete_click": SettingsValue(bool, True),
}, },
'preferences': { 'preferences': {
'lock': SettingsValue(list, []), 'lock': SettingsValue(list, []),

View file

@ -14,11 +14,10 @@
} }
} }
function autocomplete_onclick(e, suggestion, params) { function autocomplete_onclick (e, suggestion, params) {
params._Select(suggestion); params._Select(suggestion);
// Ctrl + Click = Only place the suggestion in the search bar, no auto search. // Ctrl + Click = Only place the suggestion in the search bar, no auto search.
if(!e.ctrlKey && searxng.settings.search_on_autocomplete_click){ if (!e.ctrlKey && searxng.settings.search_on_autocomplete_click){
submitIfQuery(); submitIfQuery();
} }
} }