Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
1cf7bfe7
Commit
1cf7bfe7
authored
Oct 07, 2005
by
bugreport%peshkin.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 310171 Update css for private comments in real-time
Patch by Andre Batosti <batosti@async.com.br> r=joel, a=justdave
parent
af7d2134
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
1 deletion
+26
-1
comments.html.tmpl
template/en/default/bug/comments.html.tmpl
+16
-0
edit.html.tmpl
template/en/default/bug/edit.html.tmpl
+10
-1
No files found.
template/en/default/bug/comments.html.tmpl
View file @
1cf7bfe7
...
...
@@ -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>
...
...
template/en/default/bug/edit.html.tmpl
View file @
1cf7bfe7
...
...
@@ -114,6 +114,14 @@
[% END %]
function updateCommentTagControl(checkbox, form) {
if (checkbox.checked) {
form.comment.className='bz_private';
} else {
form.comment.className='';
}
}
//-->
</script>
...
...
@@ -542,7 +550,8 @@
<b>Additional <u>C</u>omments:</b>
[% IF Param("insidergroup") && UserInGroup(Param("insidergroup")) %]
<input type="checkbox" name="commentprivacy" value="1"
id="newcommentprivacy"> Private
id="newcommentprivacy"
onClick="updateCommentTagControl(this, form)"> Private
[% END %]
<br>
<a name="add_comment"></a>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment