diff --git a/data/templates/editbookmark.tpl.php b/data/templates/editbookmark.tpl.php index 6ce10b3..f440740 100644 --- a/data/templates/editbookmark.tpl.php +++ b/data/templates/editbookmark.tpl.php @@ -142,19 +142,21 @@ jQuery(document).ready(function() { jQuery("input#tags").autocomplete({ - minLength: 0, + minLength: 1, source: function(request, response) { // delegate back to autocomplete, but extract the last term response( + /* $.ui.autocomplete.filter( availableTags, extractLast(request.term) ) - /* - $.getJSON( "search.php", { - term: extractLast( request.term ) - }, response ); */ + $.getJSON( + "ajax/getcontacttags.php", + { beginsWith: extractLast(request.term) }, + response + ) ); },