summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rw-r--r--template/en/default/bug/create/create.html.tmpl3
-rw-r--r--template/en/default/bug/edit.html.tmpl5
-rw-r--r--template/en/default/list/edit-multiple.html.tmpl7
3 files changed, 14 insertions, 1 deletions
diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl
index d372c4d08..d57615da9 100644
--- a/template/en/default/bug/create/create.html.tmpl
+++ b/template/en/default/bug/create/create.html.tmpl
@@ -566,6 +566,9 @@ TUI_hide_default('attachment_text_field');
</label>
</td>
</tr>
+ <script>
+ updateCommentTagControl(document.getElementById('comment_is_private'), 'comment');
+ </script>
[% END %]
[% IF Param("maxattachmentsize") || Param("maxlocalattachment") %]
diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl
index 0da60e6c8..3a2a81d8e 100644
--- a/template/en/default/bug/edit.html.tmpl
+++ b/template/en/default/bug/edit.html.tmpl
@@ -1115,6 +1115,11 @@
maxrows = 25
cols = constants.COMMENT_COLS
%]
+ [% IF user.is_insider %]
+ <script>
+ updateCommentTagControl(document.getElementById('newcommentprivacy'), 'comment');
+ </script>
+ [% END %]
[% Hook.process("after_comment_textarea", 'bug/edit.html.tmpl') %]
[% ELSE %]
You are not allowed to make an additional comment on this [% terms.bug %].
diff --git a/template/en/default/list/edit-multiple.html.tmpl b/template/en/default/list/edit-multiple.html.tmpl
index 9c6cb95cb..80204a613 100644
--- a/template/en/default/list/edit-multiple.html.tmpl
+++ b/template/en/default/list/edit-multiple.html.tmpl
@@ -289,7 +289,7 @@
[% IF user.is_insider %]
<input type="checkbox" name="comment_is_private" value="1"
id="newcommentprivacy"
- onClick="updateCommentTagControl(this, form)">
+ onClick="updateCommentTagControl(this, 'comment')">
<label for="newcommentprivacy">
Make comment private (visible only to members of the
<strong>[% Param('insidergroup') FILTER html %]</strong> group)
@@ -303,6 +303,11 @@
maxrows = 25
cols = constants.COMMENT_COLS
%]<br>
+[% IF user.is_insider %]
+ <script>
+ updateCommentTagControl(document.getElementById('newcommentprivacy'), 'comment');
+ </script>
+[% END %]
[% Hook.process('before_groups') %]