summaryrefslogtreecommitdiffstats
path: root/template/en
diff options
context:
space:
mode:
Diffstat (limited to 'template/en')
-rw-r--r--template/en/default/attachment/create.html.tmpl14
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>