deactivate autocompleter by default

This commit is contained in:
Thomas Pointhuber 2014-03-21 11:11:31 +01:00
parent cc7f3cb617
commit c8cf95aa56
5 changed files with 45 additions and 21 deletions

View file

@ -1,18 +1,20 @@
window.addEvent('domready', function() {
new Autocompleter.Request.JSON('q', '/autocompleter', {
postVar:'q',
postData:{
'format': 'json'
},
ajaxOptions:{
timeout: 5 // Correct option?
},
'minLength': 4,
'selectMode': 'type-ahead',
cache: true,
delay: 300
});
});
if(searx.autocompleter) {
window.addEvent('domready', function() {
new Autocompleter.Request.JSON('q', '/autocompleter', {
postVar:'q',
postData:{
'format': 'json'
},
ajaxOptions:{
timeout: 5 // Correct option?
},
'minLength': 4,
'selectMode': 'type-ahead',
cache: true,
delay: 300
});
});
}
(function (w, d) {
'use strict';