small autocomplete fix adding space to the output

provides: the ability to press enter after pressing enter during the mention-js-popup (this second enter should behave as a normal one) FF35
This commit is contained in:
RedSwede 2015-01-29 16:30:45 +01:00
parent 06291c6f42
commit 05ce141ecc

View file

@ -77,7 +77,7 @@ function editor_replace(item) {
// 16 chars is also the minimum length in the backend (otherwise it's interpreted as a local id).
if(id.length > 16)
id = item.id.substring(0,16);
return '$1$2'+item.nick.replace(' ','') + '+' + id;
return '$1$2'+item.nick.replace(' ','') + '+' + id + ' ';
}
function basic_replace(item) {