diff options
author | Dylan William Hardison <dylan@hardison.net> | 2016-10-12 16:24:58 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2016-10-12 16:24:58 +0200 |
commit | c4a1ca8cb5a117d2ab992918131ee0c093d7187b (patch) | |
tree | e965d469a268dfe05c8db6cc47c67fa3acdd8909 /js | |
parent | f1b9ed5d96a4738471559c9a275eabc4333d74f4 (diff) | |
download | bugzilla-c4a1ca8cb5a117d2ab992918131ee0c093d7187b.tar.gz bugzilla-c4a1ca8cb5a117d2ab992918131ee0c093d7187b.tar.xz |
Revert "Bug 711655 - 'reply' JS should insert at caret position"
This reverts commit b0f5a16ece2ae97d5ebec0c36aed4f965b162398.
Diffstat (limited to 'js')
-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 0cc4fb9eb..30baf53f4 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.startsWith(replytext)) { - textarea.value = replytext+"\n"+textarea.value; + if (textarea.value != replytext) { + textarea.value += replytext; } textarea.focus(); |