Allow auto-completion with the task id

This commit is contained in:
Frederic Guillot
2015-05-09 22:30:23 -04:00
parent 5d5ba44337
commit 1176a489ab
4 changed files with 27 additions and 10 deletions

View File

@@ -234,7 +234,7 @@ var Kanboard = (function() {
$(".task-autocomplete").autocomplete({
source: $(".task-autocomplete").data("search-url"),
minLength: 2,
minLength: 1,
select: function(event, ui) {
var field = $(".task-autocomplete").data("dst-field");
$("input[name=" + field + "]").val(ui.item.id);