Fix whitespace disappearing at the beginning of completed smily

This commit is contained in:
Stefan Parviainen 2014-12-21 14:36:46 +01:00
parent c2b84f7385
commit af28b33214

View File

@ -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],{});
};