diff options
-rw-r--r-- | js/field.js | 8 | ||||
-rw-r--r-- | template/en/default/bug/edit.html.tmpl | 8 | ||||
-rw-r--r-- | template/en/default/list/edit-multiple.html.tmpl | 9 |
3 files changed, 16 insertions, 9 deletions
diff --git a/js/field.js b/js/field.js index daa390482..21fda4d5a 100644 --- a/js/field.js +++ b/js/field.js @@ -324,6 +324,14 @@ function boldOnChange(e, field_id){ } } +function updateCommentTagControl(checkbox, form) { + if (checkbox.checked) { + form.comment.className='bz_private'; + } else { + form.comment.className=''; + } +} + /** * Says that a field should only be displayed when another field has * a certain value. May only be called after the controller has already diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index ff621173f..73efa0b6c 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -136,14 +136,6 @@ [% END %] - function updateCommentTagControl(checkbox, form) { - if (checkbox.checked) { - form.comment.className='bz_private'; - } else { - form.comment.className=''; - } - } - //--> </script> diff --git a/template/en/default/list/edit-multiple.html.tmpl b/template/en/default/list/edit-multiple.html.tmpl index 190628fa9..d49709dbc 100644 --- a/template/en/default/list/edit-multiple.html.tmpl +++ b/template/en/default/list/edit-multiple.html.tmpl @@ -256,7 +256,14 @@ </table> -<b><label for="comment">Additional Comments:</label></b><br> +<b><label for="comment">Additional Comments:</label></b> +[% IF user.is_insider %] + <input type="checkbox" name="commentprivacy" value="1" + id="newcommentprivacy" + onClick="updateCommentTagControl(this, form)"/> + <label for="newcommentprivacy">Private</label> +[% END %] +<br> [% INCLUDE global/textarea.html.tmpl name = 'comment' id = 'comment' |