summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2011-03-28 19:17:51 +0200
committerChristian Weiske <cweiske@cweiske.de>2011-03-28 19:17:51 +0200
commit833dde3f53fe4f5101c299245d9fa02e0ae51c80 (patch)
tree08833fc93b0af273085553c95e4c86f2d61a1958
parenta5bd7789297378be3fb8dc3814c6649ea82a88d8 (diff)
downloadsemanticscuttle-833dde3f53fe4f5101c299245d9fa02e0ae51c80.tar.gz
semanticscuttle-833dde3f53fe4f5101c299245d9fa02e0ae51c80.tar.bz2
jquey-autocomplete works!
-rw-r--r--data/templates/editbookmark.tpl.php12
1 files changed, 7 insertions, 5 deletions
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(
+ "<?php echo ROOT ?>ajax/getcontacttags.php",
+ { beginsWith: extractLast(request.term) },
+ response
+ )
);
},