This commit is contained in:
Toks
2013-06-19 13:50:33 -04:00
parent c2f641290f
commit 0d2b8030e1

View File

@@ -42,10 +42,7 @@
return false;
},
select: function(event, ui) {
var terms = this.value.match(/\S+/g);
terms.pop();
terms.push(ui.item.value);
this.value = terms.join(" ") + " ";
this.value = this.value.replace(/\S+\s*$/g, ui.item.value + " ");
return false;
},
source: function(req, resp) {