diff --git a/progit/templates/issue.html b/progit/templates/issue.html
index b7dd383..4c19bf9 100644
--- a/progit/templates/issue.html
+++ b/progit/templates/issue.html
@@ -71,9 +71,9 @@
{% endif %}
{% if authenticated %}
{% if issue.assignee -%}
-
+
{%- else -%}
-
+
{%- endif -%}
{% endif %}
@@ -226,6 +226,21 @@ $(function() {
delay: 200,
});
+ $('#assignee').autocomplete({
+ source: function( request, response ) {
+ $.getJSON(
+ "{{ url_for('api_ns.api_users') }}", {
+ pattern: request.term
+ },
+ function( data ) {
+ response( data.users );
+ }
+ );
+ },
+ minLength: 2,
+ delay: 200,
+ });
+
});
{% endblock %}