diff options
Diffstat (limited to 'template/en/default/bug')
-rw-r--r-- | template/en/default/bug/comments.html.tmpl | 1 | ||||
-rw-r--r-- | template/en/default/bug/edit.html.tmpl | 9 |
2 files changed, 9 insertions, 1 deletions
diff --git a/template/en/default/bug/comments.html.tmpl b/template/en/default/bug/comments.html.tmpl index 2015d3abd..2f82b46dc 100644 --- a/template/en/default/bug/comments.html.tmpl +++ b/template/en/default/bug/comments.html.tmpl @@ -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 %] diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index 7e259283a..2585c6c92 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -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> |