summaryrefslogtreecommitdiffstats
path: root/template/en
diff options
context:
space:
mode:
authorDavid Lawrence <dlawrence@mozilla.com>2011-01-21 07:35:50 +0100
committerDavid Lawrence <dlawrence@mozilla.com>2011-01-21 07:35:50 +0100
commit4eb82e4c5479ff0ed99518f75a4aa2d24a4ec378 (patch)
treeb3bc73addf7518b4add83f4053d537ffba4dde2d /template/en
parent7f5eb650ab8f624efe9f4fb6b66c78d8e11539e3 (diff)
downloadbugzilla-4eb82e4c5479ff0ed99518f75a4aa2d24a4ec378.tar.gz
bugzilla-4eb82e4c5479ff0ed99518f75a4aa2d24a4ec378.tar.xz
Bug 626292: "Make description private" checkbox should set bz_private class on the comment box
r/a=mkanat
Diffstat (limited to 'template/en')
-rw-r--r--template/en/default/bug/create/create.html.tmpl3
-rw-r--r--template/en/default/bug/edit.html.tmpl5
2 files changed, 5 insertions, 3 deletions
diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl
index 94aafe45d..a2e7b7eae 100644
--- a/template/en/default/bug/create/create.html.tmpl
+++ b/template/en/default/bug/create/create.html.tmpl
@@ -589,7 +589,8 @@ TUI_hide_default('attachment_text_field');
<td colspan="3">
&nbsp;&nbsp;
<input type="checkbox" id="comment_is_private" name="comment_is_private"
- [% ' checked="checked"' IF comment_is_private %]>
+ [% ' checked="checked"' IF comment_is_private %]
+ onClick="updateCommentTagControl(this, 'comment')">
<label for="comment_is_private">
Make description private (visible only to members of the
<strong>[% Param('insidergroup') FILTER html %]</strong> group)
diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl
index e8eaaad1f..1ae71b299 100644
--- a/template/en/default/bug/edit.html.tmpl
+++ b/template/en/default/bug/edit.html.tmpl
@@ -60,6 +60,7 @@
[% IF user.is_insider %]
if (document.getElementById('isprivate_' + real_id).checked) {
document.getElementById('newcommentprivacy').checked = 'checked';
+ updateCommentTagControl(document.getElementById('newcommentprivacy'), 'comment');
}
[% END %]
@@ -130,7 +131,7 @@
//-->
</script>
-<form name="changeform" method="post" action="process_bug.cgi">
+<form name="changeform" id="changeform" method="post" action="process_bug.cgi">
<input type="hidden" name="delta_ts" value="[% bug.delta_ts %]">
<input type="hidden" name="longdesclength" value="[% bug.comments.size %]">
@@ -1066,7 +1067,7 @@
[% 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)