Commit b1af4480 authored by Dave Miller's avatar Dave Miller Committed by Frédéric Buclin

Bug 893595: The pink colour of private comment will turn to white after refreshing the page

r=LpSolit a=justdave
parent 6ec36256
......@@ -565,6 +565,9 @@ TUI_hide_default('attachment_text_field');
Make description and any new attachment private (visible only to members
of the <strong>[% Param('insidergroup') FILTER html %]</strong> group)
</label>
<script>
updateCommentTagControl(document.getElementById('comment_is_private'), 'comment');
</script>
</td>
</tr>
[% END %]
......
......@@ -1061,6 +1061,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 %].
......
......@@ -288,7 +288,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)
......@@ -302,6 +302,11 @@
maxrows = 25
cols = constants.COMMENT_COLS
%]<br>
[% IF user.is_insider %]
<script>
updateCommentTagControl(document.getElementById('newcommentprivacy'), 'comment');
</script>
[% END %]
[% Hook.process('before_groups') %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment