Commit b0f5a16e authored by Anamika_07's avatar Anamika_07 Committed by Dylan William Hardison

Bug 711655 - 'reply' JS should insert at caret position

r=dylan
parent d9ba51c3
...@@ -29,8 +29,8 @@ function replyToComment(id, real_id, replyto_header, text) { ...@@ -29,8 +29,8 @@ function replyToComment(id, real_id, replyto_header, text) {
/* <textarea id="comment"> */ /* <textarea id="comment"> */
var textarea = document.getElementById('comment'); var textarea = document.getElementById('comment');
if (textarea.value != replytext) { if (!textarea.value.startsWith(replytext)) {
textarea.value += replytext; textarea.value = replytext+"\n"+textarea.value;
} }
textarea.focus(); textarea.focus();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment