mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
Make eslint black and ymllint happy
This commit is contained in:
parent
1d969c53b2
commit
6a80f1acc7
3 changed files with 5 additions and 5 deletions
|
@ -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
|
||||||
|
|
|
@ -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, []),
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue