diff options
Diffstat (limited to 'template/en/default/bug')
-rw-r--r-- | template/en/default/bug/comments.html.tmpl | 2 | ||||
-rw-r--r-- | template/en/default/bug/edit.html.tmpl | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/template/en/default/bug/comments.html.tmpl b/template/en/default/bug/comments.html.tmpl index 7a0020d47..1fc5d46d3 100644 --- a/template/en/default/bug/comments.html.tmpl +++ b/template/en/default/bug/comments.html.tmpl @@ -183,7 +183,7 @@ [% IF mode == "edit" %] <script type="text/javascript"><!-- addCollapseLink([% count %]); - addReplyLink([% count %]); //--> + addReplyLink([% count %], [% comment.id %]); //--> </script> [% END %] [%+ decoration FILTER none %] diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index a43fd225f..e2ce068e4 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -32,18 +32,18 @@ <!-- /* Outputs a link to call replyToComment(); used to reduce HTML output */ - function addReplyLink(id) { + function addReplyLink(id, real_id) { /* XXX this should really be updated to use the DOM Core's * createElement, but finding a container isn't trivial. */ [% IF user.settings.quote_replies.value != 'off' %] document.write('[<a href="#add_comment" onclick="replyToComment(' + - id + ');">reply<' + '/a>]'); + id + ',' + real_id + ');">reply<' + '/a>]'); [% END %] } /* Adds the reply text to the `comment' textarea */ - function replyToComment(id) { + function replyToComment(id, real_id) { var prefix = "(In reply to comment #" + id + ")\n"; var replytext = ""; [% IF user.settings.quote_replies.value == 'quoted_reply' %] @@ -66,7 +66,7 @@ [% END %] [% IF Param("insidergroup") && user.in_group(Param("insidergroup")) %] - if (document.getElementById('isprivate-'+id).checked) { + if (document.getElementById('isprivate_' + real_id).checked) { document.getElementById('newcommentprivacy').checked = 'checked'; } [% END %] |