add front-part of autocompleter function

This commit is contained in:
Thomas Pointhuber 2014-03-19 20:19:44 +01:00
parent ce08abe223
commit ecd293c8a9
7 changed files with 598 additions and 0 deletions

View file

@ -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) {