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/css/hyperkitty-common.css | 3 +++ hyperkitty/static/js/hyperkitty-thread.js | 5 +++++ 2 files changed, 8 insertions(+) (limited to 'hyperkitty/static') diff --git a/hyperkitty/static/css/hyperkitty-common.css b/hyperkitty/static/css/hyperkitty-common.css index daa925e..7b05127 100644 --- a/hyperkitty/static/css/hyperkitty-common.css +++ b/hyperkitty/static/css/hyperkitty-common.css @@ -276,3 +276,6 @@ a.thread-new strong { display: block; margin: 1em auto; } +.ui-autocomplete-loading { + background: white url('../img/ajax-loader.gif') right center no-repeat; +} 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