diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2013-06-19 18:28:04 +0200 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2013-06-19 18:28:04 +0200 |
commit | 6ada7fb3f6842998e274d06900d353142992c622 (patch) | |
tree | 183ced94d8f30f007b2672de0fc1e5133d51c945 /hyperkitty/static | |
parent | 72f2e6b28475b4615f4c3fabc3b5788b441a3c55 (diff) | |
download | hyperkitty-6ada7fb3f6842998e274d06900d353142992c622.tar.gz hyperkitty-6ada7fb3f6842998e274d06900d353142992c622.tar.xz hyperkitty-6ada7fb3f6842998e274d06900d353142992c622.zip |
Add an autocomplete widget on the add_tag box
Diffstat (limited to 'hyperkitty/static')
-rw-r--r-- | hyperkitty/static/css/hyperkitty-common.css | 3 | ||||
-rw-r--r-- | hyperkitty/static/js/hyperkitty-thread.js | 5 |
2 files changed, 8 insertions, 0 deletions
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") + }); } |