diff options
author | Byron Jones <bjones@mozilla.com> | 2011-12-08 07:17:21 +0100 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2011-12-08 07:17:21 +0100 |
commit | 720db163b9814b294b163347d994e513b8771ae7 (patch) | |
tree | 78dd845c2b91c68b29afab611c483882da626969 /template/en/default | |
parent | af86419d74b0050ea590dede8da6587c75a67f16 (diff) | |
download | bugzilla-720db163b9814b294b163347d994e513b8771ae7.tar.gz bugzilla-720db163b9814b294b163347d994e513b8771ae7.tar.xz |
Bug 707931: fix broken backport
Diffstat (limited to 'template/en/default')
-rw-r--r-- | template/en/default/bug/comments.html.tmpl | 3 | ||||
-rw-r--r-- | template/en/default/bug/edit.html.tmpl | 33 |
2 files changed, 3 insertions, 33 deletions
diff --git a/template/en/default/bug/comments.html.tmpl b/template/en/default/bug/comments.html.tmpl index a6a2867bb..ea0b774c0 100644 --- a/template/en/default/bug/comments.html.tmpl +++ b/template/en/default/bug/comments.html.tmpl @@ -47,6 +47,9 @@ } [% END %] + /* Remove embedded links to attachment details */ + replytext = replytext.replace(/(attachment\s+\d+)(\s+\[[^\[]+\])+/gi, '$1'); + /* <textarea id="comment"> */ var textarea = document.getElementById('comment'); textarea.value += replytext; diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index ae7ee8047..3a154b557 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -32,39 +32,6 @@ <script type="text/javascript"> <!-- - /* Adds the reply text to the `comment' textarea */ - function replyToComment(id, real_id, name) { - var prefix = "(In reply to "; - if (name) { - prefix = prefix + name + " from"; - } - prefix = prefix + " comment #" + id + ")\n"; - var replytext = ""; - [% IF user.settings.quote_replies.value == 'quoted_reply' %] - /* pre id="comment_name_N" */ - var text_elem = document.getElementById('comment_text_'+id); - var text = getText(text_elem); - replytext = prefix + wrapReplyText(text); - [% ELSIF user.settings.quote_replies.value == 'simple_reply' %] - replytext = prefix; - [% END %] - - [% IF user.is_insider %] - if (document.getElementById('isprivate_' + real_id).checked) { - document.getElementById('newcommentprivacy').checked = 'checked'; - updateCommentTagControl(document.getElementById('newcommentprivacy'), 'comment'); - } - [% END %] - - /* Remove embedded links to attachment details */ - replytext = replytext.replace(/(attachment\s+\d+)(\s+\[[^\[]+\])+/gi, '$1'); - - /* <textarea id="comment"> */ - var textarea = document.getElementById('comment'); - textarea.value += replytext; - - textarea.focus(); - } [% IF user.is_timetracker %] var fRemainingTime = [% bug.remaining_time %]; // holds the original value |