From 1cf7bfe7635af2b613c52cdec13b7daf44c22de4 Mon Sep 17 00:00:00 2001 From: "bugreport%peshkin.net" <> Date: Fri, 7 Oct 2005 03:08:38 +0000 Subject: Bug 310171 Update css for private comments in real-time Patch by Andre Batosti r=joel, a=justdave --- template/en/default/bug/comments.html.tmpl | 16 ++++++++++++++++ template/en/default/bug/edit.html.tmpl | 11 ++++++++++- 2 files changed, 26 insertions(+), 1 deletion(-) (limited to 'template') diff --git a/template/en/default/bug/comments.html.tmpl b/template/en/default/bug/comments.html.tmpl index 289593b7a..163f3408d 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 38b01f06e..940e320bd 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 %]
-- cgit v1.2.3-24-g4f1b