mirror of https://github.com/searxng/searxng.git
[mod] Ignore autocomplete_min on queries that include '!' (!bang)
Closes: https://github.com/searxng/searxng/issues/1566 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
5c8d56e73a
commit
abf574dc0c
|
@ -72,6 +72,13 @@
|
||||||
form.submit();
|
form.submit();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
_MinChars: function () {
|
||||||
|
if (this.Input.value.indexOf('!') > -1) {
|
||||||
|
return 0;
|
||||||
|
} else {
|
||||||
|
return AutoComplete.defaults._MinChars.call(this);
|
||||||
|
}
|
||||||
|
},
|
||||||
KeyboardMappings: Object.assign({}, AutoComplete.defaults.KeyboardMappings, {
|
KeyboardMappings: Object.assign({}, AutoComplete.defaults.KeyboardMappings, {
|
||||||
"KeyUpAndDown_up": Object.assign({}, AutoComplete.defaults.KeyboardMappings.KeyUpAndDown_up, {
|
"KeyUpAndDown_up": Object.assign({}, AutoComplete.defaults.KeyboardMappings.KeyUpAndDown_up, {
|
||||||
Callback: function (event) {
|
Callback: function (event) {
|
||||||
|
|
Loading…
Reference in New Issue