Commit 87c62ab6 authored by jocuri%softhome.net's avatar jocuri%softhome.net

Patch for bug 257765: Make replies to private comments private by default; patch…

Patch for bug 257765: Make replies to private comments private by default; patch by Marc Schumann <wurblzap@gmail.com>, r=kiko, a=justdave.
parent 40046fe7
...@@ -68,6 +68,7 @@ ...@@ -68,6 +68,7 @@
value="[% comment.isprivate %]"> value="[% comment.isprivate %]">
<input type="hidden" name="when-[% count %]" value="[% comment.when %]"> <input type="hidden" name="when-[% count %]" value="[% comment.when %]">
<input type="checkbox" name="isprivate-[% count %]" value="1" <input type="checkbox" name="isprivate-[% count %]" value="1"
id="isprivate-[% count %]"
[% " checked=\"checked\"" IF comment.isprivate %]> Private [% " checked=\"checked\"" IF comment.isprivate %]> Private
</i> </i>
[% END %] [% END %]
......
...@@ -52,6 +52,12 @@ ...@@ -52,6 +52,12 @@
replytext = "(In reply to comment #" + id + ")\n" + replytext + "\n"; replytext = "(In reply to comment #" + id + ")\n" + replytext + "\n";
[% IF Param("insidergroup") && UserInGroup(Param("insidergroup")) %]
if (document.getElementById('isprivate-'+id).checked) {
document.getElementById('newcommentprivacy').checked = 'checked';
}
[% END %]
/* <textarea id="comment"> */ /* <textarea id="comment"> */
var textarea = document.getElementById('comment'); var textarea = document.getElementById('comment');
textarea.value += replytext; textarea.value += replytext;
...@@ -462,7 +468,8 @@ ...@@ -462,7 +468,8 @@
<br> <br>
<b>Additional <u>C</u>omments:</b> <b>Additional <u>C</u>omments:</b>
[% IF Param("insidergroup") && UserInGroup(Param("insidergroup")) %] [% IF Param("insidergroup") && UserInGroup(Param("insidergroup")) %]
<input type="checkbox" name="commentprivacy" value="1"> Private <input type="checkbox" name="commentprivacy" value="1"
id="newcommentprivacy"> Private
[% END %] [% END %]
<br> <br>
<a name="add_comment"></a> <a name="add_comment"></a>
......
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