mirror of
https://github.com/searxng/searxng.git
synced 2025-12-23 12:10:00 +00:00
add front-part of autocompleter function
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user