summaryrefslogtreecommitdiffstats
path: root/hyperkitty/static
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-06-19 18:28:04 +0200
committerAurélien Bompard <aurelien@bompard.org>2013-06-19 18:28:04 +0200
commit6ada7fb3f6842998e274d06900d353142992c622 (patch)
tree183ced94d8f30f007b2672de0fc1e5133d51c945 /hyperkitty/static
parent72f2e6b28475b4615f4c3fabc3b5788b441a3c55 (diff)
downloadhyperkitty-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.css3
-rw-r--r--hyperkitty/static/js/hyperkitty-thread.js5
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")
+ });
}