summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2004-10-10 05:39:51 +0200
committerjocuri%softhome.net <>2004-10-10 05:39:51 +0200
commit87c62ab69044959d7f62014eb6cb9d7bc959a56d (patch)
tree0f91aeccfd4804ddb4022adb03fae4416df11209 /template
parent40046fe7dd4fa67d39d15a5d4e9d90111193bd60 (diff)
downloadbugzilla-87c62ab69044959d7f62014eb6cb9d7bc959a56d.tar.gz
bugzilla-87c62ab69044959d7f62014eb6cb9d7bc959a56d.tar.xz
Patch for bug 257765: Make replies to private comments private by default; patch by Marc Schumann <wurblzap@gmail.com>, r=kiko, a=justdave.
Diffstat (limited to 'template')
-rw-r--r--template/en/default/bug/comments.html.tmpl1
-rw-r--r--template/en/default/bug/edit.html.tmpl9
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>