mirror of
https://github.com/searxng/searxng.git
synced 2024-11-27 13:21:04 +00:00
Merge pull request #2346 from return42/fix-1566
[mod] Ignore autocomplete_min on queries that include '!' (!bang)
This commit is contained in:
commit
5a3f99ee1a
3 changed files with 9 additions and 2 deletions
2
searx/static/themes/simple/js/searxng.min.js
vendored
2
searx/static/themes/simple/js/searxng.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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 a new issue