]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Revert "Bug 711655 - 'reply' JS should insert at caret position"
authorDylan William Hardison <dylan@hardison.net>
Wed, 12 Oct 2016 14:24:58 +0000 (10:24 -0400)
committerDylan William Hardison <dylan@hardison.net>
Wed, 12 Oct 2016 14:24:58 +0000 (10:24 -0400)
This reverts commit b0f5a16ece2ae97d5ebec0c36aed4f965b162398.

js/comments.js

index 0cc4fb9eb499254d68f8429ae7d65e3ff4a14d85..30baf53f4b13fcf2d707a7ab740d6047b5a306bc 100644 (file)
@@ -29,8 +29,8 @@ function replyToComment(id, real_id, replyto_header, text) {
 
     /* <textarea id="comment"> */
     var textarea = document.getElementById('comment');
-    if (!textarea.value.startsWith(replytext)) {
-        textarea.value = replytext+"\n"+textarea.value;
+    if (textarea.value != replytext) {
+        textarea.value += replytext;
     }
 
     textarea.focus();