mirror of
https://github.com/searxng/searxng.git
synced 2025-07-14 16:59:21 +02:00
add front-part of autocompleter function
This commit is contained in:
parent
ce08abe223
commit
ecd293c8a9
7 changed files with 598 additions and 0 deletions
|
@ -1,3 +1,20 @@
|
|||
window.addEvent('domready', function() {
|
||||
new Autocompleter.Request.JSON('q', '/', {
|
||||
postVar:'q',
|
||||
postData:{
|
||||
'autocompleter': 1,
|
||||
'format': 'json'
|
||||
},
|
||||
ajaxOptions:{
|
||||
timeout: 5 // Correct option?
|
||||
},
|
||||
'minLength': 4,
|
||||
'selectMode': 'type-ahead',
|
||||
cache: true,
|
||||
delay: 300
|
||||
});
|
||||
});
|
||||
|
||||
(function (w, d) {
|
||||
'use strict';
|
||||
function addListener(el, type, fn) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue