From 6ada7fb3f6842998e274d06900d353142992c622 Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Wed, 19 Jun 2013 18:28:04 +0200 Subject: Add an autocomplete widget on the add_tag box --- hyperkitty/static/js/hyperkitty-thread.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'hyperkitty/static/js/hyperkitty-thread.js') diff --git a/hyperkitty/static/js/hyperkitty-thread.js b/hyperkitty/static/js/hyperkitty-thread.js index e841f75..5b7765d 100644 --- a/hyperkitty/static/js/hyperkitty-thread.js +++ b/hyperkitty/static/js/hyperkitty-thread.js @@ -54,6 +54,11 @@ function setup_tags() { e.preventDefault(); $(this).parents("form").first().submit(); }); + // Autocomplete + $("#id_tag").autocomplete({ + //minLength: 2, + source: $("#add-tag-form").attr("data-autocompleteurl") + }); } -- cgit