Fix whitespace disappearing at the beginning of completed smily
This commit is contained in:
parent
c2b84f7385
commit
af28b33214
@ -52,7 +52,7 @@ function replace(item) {
|
||||
index: 2,
|
||||
search: function(term, callback) { $.getJSON('/smilies/json').done(function(data) { callback($.map(data, function(entry) { return entry['text'].indexOf(term) === 0 ? entry : null })) }) },
|
||||
template: function(item) { return item['icon'] + item['text'] },
|
||||
replace: function(item) { return item['text'] + ' '; },
|
||||
replace: function(item) { return "$1"+item['text'] + ' '; },
|
||||
}
|
||||
this.textcomplete([contacts,smilies],{});
|
||||
};
|
||||
|
Reference in New Issue
Block a user