summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2012-01-13 19:41:20 +0100
committerDave Lawrence <dlawrence@mozilla.com>2012-01-13 19:41:20 +0100
commitbea72931e7522f3135b5788824d8319f4144b94d (patch)
treebfbd4a9c8eabb90bee398a80c1be3cf6967c35e3
parent949ceaace6413cbc462cf5a212d27c5e10f1e33c (diff)
downloadbugzilla-bea72931e7522f3135b5788824d8319f4144b94d.tar.gz
bugzilla-bea72931e7522f3135b5788824d8319f4144b94d.tar.xz
Bug 714335 - Multiple clicks of the reply link on comments keeps adding the reply text to the new comment box
r/a=LpSolit
-rw-r--r--template/en/default/bug/comments.html.tmpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/template/en/default/bug/comments.html.tmpl b/template/en/default/bug/comments.html.tmpl
index ea0b774c0..635fc5848 100644
--- a/template/en/default/bug/comments.html.tmpl
+++ b/template/en/default/bug/comments.html.tmpl
@@ -52,7 +52,9 @@
/* <textarea id="comment"> */
var textarea = document.getElementById('comment');
- textarea.value += replytext;
+ if (textarea.value != replytext) {
+ textarea.value += replytext;
+ }
textarea.focus();
}