summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2007-11-21 08:06:22 +0100
committermkanat%bugzilla.org <>2007-11-21 08:06:22 +0100
commit8ab75a83c21606ad77a38c05057f886011fa0451 (patch)
tree36e901a48162162acde868386f51d80f04931254
parente59296bd6780db6aceec48c9414b29acd5d0fdfa (diff)
downloadbugzilla-8ab75a83c21606ad77a38c05057f886011fa0451.tar.gz
bugzilla-8ab75a83c21606ad77a38c05057f886011fa0451.tar.xz
Bug 404412: Couldn't edit comments anymore because of a regression from bug 401957.
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
-rw-r--r--template/en/default/bug/comments.html.tmpl2
-rw-r--r--template/en/default/bug/edit.html.tmpl8
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 %]