Patch for bug 257765: Make replies to private comments private by default; patch by Marc Schumann <wurblzap@gmail.com>, r=kiko, a=justdave.

git-svn-id: svn://10.0.0.236/trunk@163484 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jocuri%softhome.net
2004-10-09 20:39:51 +00:00
parent 9161fe2a20
commit 1b92dd7a88
2 changed files with 9 additions and 1 deletions

View File

@@ -68,6 +68,7 @@
value="[% comment.isprivate %]">
<input type="hidden" name="when-[% count %]" value="[% comment.when %]">
<input type="checkbox" name="isprivate-[% count %]" value="1"
id="isprivate-[% count %]"
[% " checked=\"checked\"" IF comment.isprivate %]> Private
</i>
[% END %]

View File

@@ -52,6 +52,12 @@
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"> */
var textarea = document.getElementById('comment');
textarea.value += replytext;
@@ -462,7 +468,8 @@
<br>
<b>Additional <u>C</u>omments:</b>
[% 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 %]
<br>
<a name="add_comment"></a>