Commit 1cb96f9b authored by dkl%redhat.com's avatar dkl%redhat.com

Bug 460909 - Mass edit bug form does not allow adding private comments

Patch by Dave Lawrence <dkl@redhat.com> - r/a=LpSolit
parent dd9a7df6
...@@ -324,6 +324,14 @@ function boldOnChange(e, field_id){ ...@@ -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 * Says that a field should only be displayed when another field has
* a certain value. May only be called after the controller has already * a certain value. May only be called after the controller has already
......
...@@ -136,14 +136,6 @@ ...@@ -136,14 +136,6 @@
[% END %] [% END %]
function updateCommentTagControl(checkbox, form) {
if (checkbox.checked) {
form.comment.className='bz_private';
} else {
form.comment.className='';
}
}
//--> //-->
</script> </script>
......
...@@ -256,7 +256,14 @@ ...@@ -256,7 +256,14 @@
</table> </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 [% INCLUDE global/textarea.html.tmpl
name = 'comment' name = 'comment'
id = 'comment' id = 'comment'
......
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