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
4eb82e4c
Commit
4eb82e4c
authored
Jan 21, 2011
by
David Lawrence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 626292: "Make description private" checkbox should set bz_private class on the comment box
r/a=mkanat
parent
7f5eb650
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
field.js
js/field.js
+3
-3
create.html.tmpl
template/en/default/bug/create/create.html.tmpl
+2
-1
edit.html.tmpl
template/en/default/bug/edit.html.tmpl
+3
-2
No files found.
js/field.js
View file @
4eb82e4c
...
...
@@ -443,11 +443,11 @@ function boldOnChange(e, field_id){
}
}
function
updateCommentTagControl
(
checkbox
,
f
orm
)
{
function
updateCommentTagControl
(
checkbox
,
f
ield
)
{
if
(
checkbox
.
checked
)
{
form
.
comment
.
className
=
'bz_private'
;
YAHOO
.
util
.
Dom
.
addClass
(
field
,
'bz_private'
)
;
}
else
{
form
.
comment
.
className
=
''
;
YAHOO
.
util
.
Dom
.
removeClass
(
field
,
'bz_private'
)
;
}
}
...
...
template/en/default/bug/create/create.html.tmpl
View file @
4eb82e4c
...
...
@@ -589,7 +589,8 @@ TUI_hide_default('attachment_text_field');
<td colspan="3">
<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)
...
...
template/en/default/bug/edit.html.tmpl
View file @
4eb82e4c
...
...
@@ -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)
...
...
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