]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 893595: The pink colour of private comment will turn to white after refreshing...
authorDave Miller <justdave@mozilla.com>
Thu, 27 Feb 2014 08:39:37 +0000 (09:39 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Thu, 27 Feb 2014 08:39:37 +0000 (09:39 +0100)
r/a=justdave

template/en/default/bug/create/create.html.tmpl
template/en/default/bug/edit.html.tmpl
template/en/default/list/edit-multiple.html.tmpl

index d372c4d08e755c6684a24dedc61b7273320815b6..d57615da9ac0e165d6b1a5a995643438fc570ac0 100644 (file)
@@ -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") %]
index 0da60e6c8fc409d5e7b9947e6500dd2350fb3f74..3a2a81d8e06969bb57119db39e50965335518e6e 100644 (file)
                      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 %].
index 9c6cb95cbca03c515566240aeef6cfa23a56fca8..80204a613e8f29e49958d58ad770e3228e62e30d 100644 (file)
 [% 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)
   maxrows = 25
   cols    = constants.COMMENT_COLS
 %]<br>
+[% IF user.is_insider %]
+  <script>
+     updateCommentTagControl(document.getElementById('newcommentprivacy'), 'comment');
+  </script>
+[% END %]
 
 [% Hook.process('before_groups') %]