jquey-autocomplete works!

This commit is contained in:
Christian Weiske 2011-03-28 19:17:51 +02:00
parent a5bd778929
commit 833dde3f53

View file

@ -142,19 +142,21 @@ jQuery(document).ready(function() {
jQuery("input#tags").autocomplete({ jQuery("input#tags").autocomplete({
minLength: 0, minLength: 1,
source: function(request, response) { source: function(request, response) {
// delegate back to autocomplete, but extract the last term // delegate back to autocomplete, but extract the last term
response( response(
/*
$.ui.autocomplete.filter( $.ui.autocomplete.filter(
availableTags, extractLast(request.term) availableTags, extractLast(request.term)
) )
/*
$.getJSON( "search.php", {
term: extractLast( request.term )
}, response );
*/ */
$.getJSON(
"<?php echo ROOT ?>ajax/getcontacttags.php",
{ beginsWith: extractLast(request.term) },
response
)
); );
}, },