Node.js based forum software built for the modern web
tweaks and formatting
Julian Lam4ae8824faf26
diff --git a/public/src/forum/topic.js b/public/src/forum/topic.jsindex a2ee6517f9..365e1482e5 100644--- a/public/src/forum/topic.js+++ b/public/src/forum/topic.js@@ -401,7 +401,7 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {quoted = '> ' + post.replace(/\n/g, '\n> ') + '\n\n';}if($('.composer').length) {- composer.addQuote(tid, pid, topic_name ,username, quoted);+ composer.addQuote(tid, pid, topic_name, username, quoted);}else {composer.newReply(tid, topic_name, username + ' said:\n' + quoted);}diff --git a/public/src/modules/composer.js b/public/src/modules/composer.jsindex 2a40f8cf26..7f14fe0035 100644--- a/public/src/modules/composer.js+++ b/public/src/modules/composer.js@@ -32,18 +32,18 @@ define(['taskbar'], function(taskbar) {}}- composer.addQuote = function(tid,pid, title,username, text){+ composer.addQuote = function(tid, pid, title, username, text){if (allowed()) {var uuid = composer.active;if(uuid !== undefined){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);