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
3988beb8
Commit
3988beb8
authored
Apr 15, 2012
by
Marc Schumann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comment toggling text is not localizable because it's in a .js file.
r/a=LpSolit
https://bugzilla.mozilla.org/show_bug.cgi?id=745460
parent
20e47ded
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
comments.js
js/comments.js
+2
-4
comments.html.tmpl
template/en/default/bug/comments.html.tmpl
+1
-1
No files found.
js/comments.js
View file @
3988beb8
...
@@ -52,13 +52,11 @@ function toggle_all_comments(action) {
...
@@ -52,13 +52,11 @@ function toggle_all_comments(action) {
function
collapse_comment
(
link
,
comment
)
{
function
collapse_comment
(
link
,
comment
)
{
link
.
innerHTML
=
"[+]"
;
link
.
innerHTML
=
"[+]"
;
link
.
title
=
"Expand the comment."
;
YAHOO
.
util
.
Dom
.
addClass
(
comment
,
'collapsed'
);
YAHOO
.
util
.
Dom
.
addClass
(
comment
,
'collapsed'
);
}
}
function
expand_comment
(
link
,
comment
)
{
function
expand_comment
(
link
,
comment
)
{
link
.
innerHTML
=
"[-]"
;
link
.
innerHTML
=
"[-]"
;
link
.
title
=
"Collapse the comment"
;
YAHOO
.
util
.
Dom
.
removeClass
(
comment
,
'collapsed'
);
YAHOO
.
util
.
Dom
.
removeClass
(
comment
,
'collapsed'
);
}
}
...
@@ -112,11 +110,11 @@ function wrapReplyText(text) {
...
@@ -112,11 +110,11 @@ function wrapReplyText(text) {
/* This way, we are sure that browsers which do not support JS
/* This way, we are sure that browsers which do not support JS
* won't display this link */
* won't display this link */
function
addCollapseLink
(
count
)
{
function
addCollapseLink
(
count
,
title
)
{
document
.
write
(
' <a href="#" class="bz_collapse_comment"'
+
document
.
write
(
' <a href="#" class="bz_collapse_comment"'
+
' id="comment_link_'
+
count
+
' id="comment_link_'
+
count
+
'" onclick="toggle_comment_display(this, '
+
count
+
'" onclick="toggle_comment_display(this, '
+
count
+
'); return false;" title="
Collapse the comment.
">[-]<
\
/a> '
);
'); return false;" title="
'
+
title
+
'
">[-]<
\
/a> '
);
}
}
function
goto_add_comments
(
anchor
){
function
goto_add_comments
(
anchor
){
...
...
template/en/default/bug/comments.html.tmpl
View file @
3988beb8
...
@@ -146,7 +146,7 @@
...
@@ -146,7 +146,7 @@
[% END %]
[% END %]
>reply</a>]
>reply</a>]
<script type="text/javascript"><!--
<script type="text/javascript"><!--
addCollapseLink([% count %]); // -->
addCollapseLink([% count %]
, 'Toggle comment display'
); // -->
</script>
</script>
</span>
</span>
[% END %]
[% END %]
...
...
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