fixed extra space in new if there is no username

v1.18.x
barisusakli 11 years ago
parent 0741b162cb
commit 642b9e4d69

@ -73,7 +73,8 @@ define(['composer'], function(composer) {
} }
} }
var username = getUserName(button) + ' '; var username = getUserName(button);
username += username ? ' ' : '';
composer.newReply(tid, getPid(button), topicName, selectionText.length > 0 ? selectionText + '\n\n' + username : '' + username); composer.newReply(tid, getPid(button), topicName, selectionText.length > 0 ? selectionText + '\n\n' + username : '' + username);
} }

Loading…
Cancel
Save