diff options
-rw-r--r-- | js/comments.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/comments.js b/js/comments.js index 30baf53f4..0cc4fb9eb 100644 --- a/js/comments.js +++ b/js/comments.js @@ -29,8 +29,8 @@ function replyToComment(id, real_id, replyto_header, text) { /* <textarea id="comment"> */ var textarea = document.getElementById('comment'); - if (textarea.value != replytext) { - textarea.value += replytext; + if (!textarea.value.startsWith(replytext)) { + textarea.value = replytext+"\n"+textarea.value; } textarea.focus(); |