]> 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:42:00 +0000 (09:42 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Thu, 27 Feb 2014 08:42:00 +0000 (09:42 +0100)
r=LpSolit 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 c51621ee281c4490cbdc18e8d82a06a8f8509cbe..c3e18adfdea276d7454245248721e2fc72a9765a 100644 (file)
@@ -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 %]
index 97878ce003180f929cb98dc1c253f7bcb40497cf..7b7c0dfc5ccc6e87eeaa20d28ea3f6aa08df811c 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 a103a417341951cc0809be93079e32670d5f069d..465578a3125441e8cdac4cd9f1ef0b1877d86392 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') %]