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 %]
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;
<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>