diff options
author | lpsolit%gmail.com <> | 2006-03-09 07:41:51 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-03-09 07:41:51 +0100 |
commit | 3cacaab9c9b2d09970fcf901d554d06f0ef16ce2 (patch) | |
tree | 90f7a3ed6fccb1f512b9f7839a451b33226214ff /template/en/default | |
parent | 18a03771df23c6ebcb60f1168fba30e70f122ac4 (diff) | |
download | bugzilla-3cacaab9c9b2d09970fcf901d554d06f0ef16ce2.tar.gz bugzilla-3cacaab9c9b2d09970fcf901d554d06f0ef16ce2.tar.xz |
Bug 313256: Update CSS for attachment comment in real time to private comments - Patch by André Batosti <batosti@async.com.br> r=vladd a=myk
Diffstat (limited to 'template/en/default')
-rw-r--r-- | template/en/default/attachment/create.html.tmpl | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/template/en/default/attachment/create.html.tmpl b/template/en/default/attachment/create.html.tmpl index ae64190e0..6da5b0c19 100644 --- a/template/en/default/attachment/create.html.tmpl +++ b/template/en/default/attachment/create.html.tmpl @@ -105,6 +105,17 @@ </script> [% END %] +<script type="text/javascript"> + function updateCommentPrivacy(checkbox) { + var text_elem = document.getElementById('comment'); + if (checkbox.checked) { + text_elem.className='bz_private'; + } else { + text_elem.className=''; + } + } + +</script> <form name="entryform" method="post" action="attachment.cgi" enctype="multipart/form-data"> @@ -190,7 +201,8 @@ <th>Privacy:</th> <td> <em>If the attachment is private, check the box below.</em><br> - <input type="checkbox" name="isprivate" id="isprivate" value="1"> + <input type="checkbox" name="isprivate" id="isprivate" + value="1" onClick="updateCommentPrivacy(this)"> <label for="isprivate">Private</label> </td> </tr> |