From: bugreport%peshkin.net <> Date: Fri, 7 Oct 2005 03:08:38 +0000 (+0000) Subject: Bug 310171 Update css for private comments in real-time X-Git-Tag: bugzilla-2.22rc1~248 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cf7bfe7635af2b613c52cdec13b7daf44c22de4;p=thirdparty%2Fbugzilla.git Bug 310171 Update css for private comments in real-time Patch by Andre Batosti r=joel, a=justdave --- diff --git a/template/en/default/bug/comments.html.tmpl b/template/en/default/bug/comments.html.tmpl index 289593b7ac..163f3408df 100644 --- a/template/en/default/bug/comments.html.tmpl +++ b/template/en/default/bug/comments.html.tmpl @@ -23,6 +23,21 @@ [% PROCESS bug/time.html.tmpl %] + + + [% DEFAULT start_at = 0 mode = "show" %] [% isinsider = Param("insidergroup") && UserInGroup(Param("insidergroup")) %] [% sort_order = user.settings.comment_sort_order.value %] @@ -112,6 +127,7 @@ value="[% comment.isprivate %]"> Private diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index 38b01f06e5..940e320bdd 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -114,6 +114,14 @@ [% END %] + function updateCommentTagControl(checkbox, form) { + if (checkbox.checked) { + form.comment.className='bz_private'; + } else { + form.comment.className=''; + } + } + //--> @@ -542,7 +550,8 @@ Additional Comments: [% IF Param("insidergroup") && UserInGroup(Param("insidergroup")) %] Private + id="newcommentprivacy" + onClick="updateCommentTagControl(this, form)"> Private [% END %]