diff options
author | bugreport%peshkin.net <> | 2005-10-07 03:08:38 +0000 |
---|---|---|
committer | bugreport%peshkin.net <> | 2005-10-07 03:08:38 +0000 |
commit | 1cf7bfe7635af2b613c52cdec13b7daf44c22de4 (patch) | |
tree | 0258d4cb29b2c25be480469b19ed088df99d0e04 /template/en/default/bug/comments.html.tmpl | |
parent | Bug 309749: Remove get_x_by_y functions from the new .pm files, in favor of o... (diff) | |
download | bugzilla-1cf7bfe7635af2b613c52cdec13b7daf44c22de4.tar.gz bugzilla-1cf7bfe7635af2b613c52cdec13b7daf44c22de4.tar.bz2 bugzilla-1cf7bfe7635af2b613c52cdec13b7daf44c22de4.zip |
Bug 310171 Update css for private comments in real-time
Patch by Andre Batosti <batosti@async.com.br>
r=joel, a=justdave
Diffstat (limited to 'template/en/default/bug/comments.html.tmpl')
-rw-r--r-- | template/en/default/bug/comments.html.tmpl | 16 |
1 files changed, 16 insertions, 0 deletions
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 %] + <script type="text/javascript"> + <!-- + function updateCommentPrivacy(checkbox, id) { + var text_elem = document.getElementById('comment_text_'+id); + if (checkbox.checked) { + text_elem.parentNode.className='bz_private'; + } else { + text_elem.parentNode.className=''; + } + document.refresh(); + } + //--> + </script> + + [% 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 %]"> <input type="hidden" name="when-[% count %]" value="[% comment.when %]"> <input type="checkbox" name="isprivate-[% count %]" value="1" + onClick="updateCommentPrivacy(this, [% count %])" id="isprivate-[% count %]" [% " checked=\"checked\"" IF comment.isprivate %]> Private </i> |