additional @mention autocomplete fixes

This commit is contained in:
r888888888
2015-10-01 12:12:14 -07:00
parent 89f38793e9
commit 5b04cd632d
2 changed files with 13 additions and 2 deletions

View File

@@ -42,6 +42,9 @@
delay: 500,
minLength: 2,
autoFocus: true,
focus: function() {
return false;
},
select: function(event, ui) {
var before_caret_text = this.value.substring(0, this.selectionStart).replace(/\S+$/, ui.item.value + " ");
var after_caret_text = this.value.substring(this.selectionStart);