mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
tweaks and formatting
This commit is contained in:
@@ -39,11 +39,11 @@ define(['taskbar'], function(taskbar) {
|
||||
var bodyEl = $('#cmp-uuid-'+uuid).find('textarea');
|
||||
var prevText = bodyEl.val();
|
||||
if(tid !== composer.posts[uuid].tid) {
|
||||
text = '\n'+username + ' said in ['+title+'](/topic/'+tid+'#'+pid+'):\n'+text;
|
||||
text = username + ' said in ['+title+'](/topic/'+tid+'#'+pid+'):\n'+text;
|
||||
}else {
|
||||
text ='\n'+ username + ' said:\n' + text;
|
||||
text = username + ' said:\n' + text;
|
||||
}
|
||||
composer.posts[uuid].body = prevText + text;
|
||||
composer.posts[uuid].body = (prevText.length ? prevText + '\n\n' : '') + text;
|
||||
bodyEl.val(composer.posts[uuid].body);
|
||||
}else{
|
||||
composer.newReply(tid,title,username + ' said:\n' + text);
|
||||
|
||||
Reference in New Issue
Block a user