summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2016-10-12 16:24:58 +0200
committerDylan William Hardison <dylan@hardison.net>2016-10-12 16:24:58 +0200
commitc4a1ca8cb5a117d2ab992918131ee0c093d7187b (patch)
treee965d469a268dfe05c8db6cc47c67fa3acdd8909
parentf1b9ed5d96a4738471559c9a275eabc4333d74f4 (diff)
downloadbugzilla-c4a1ca8cb5a117d2ab992918131ee0c093d7187b.tar.gz
bugzilla-c4a1ca8cb5a117d2ab992918131ee0c093d7187b.tar.xz
Revert "Bug 711655 - 'reply' JS should insert at caret position"
-rw-r--r--js/comments.js4
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();