Commit 8ab75a83 authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

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
parent e59296bd
......@@ -183,7 +183,7 @@
[% IF mode == "edit" %]
<script type="text/javascript"><!--
addCollapseLink([% count %]);
addReplyLink([% count %]); //-->
addReplyLink([% count %], [% comment.id %]); //-->
</script>
[% END %]
[%+ decoration FILTER none %]
......
......@@ -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 %]
......
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