jquey-autocomplete works!
This commit is contained in:
parent
a5bd778929
commit
833dde3f53
1 changed files with 7 additions and 5 deletions
|
@ -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
|
||||||
|
)
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue