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
ad9b1495
Commit
ad9b1495
authored
Apr 09, 2014
by
Byron Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 974411: js/comments.js::toggle_all_comments() shouldn't try to match
non-comment elements r=gerv, a=glob
parent
3ef245b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
comments.js
js/comments.js
+7
-4
No files found.
js/comments.js
View file @
ad9b1495
...
@@ -40,13 +40,16 @@ function toggle_all_comments(action) {
...
@@ -40,13 +40,16 @@ function toggle_all_comments(action) {
var
comment
=
comments
[
i
];
var
comment
=
comments
[
i
];
if
(
!
comment
)
if
(
!
comment
)
continue
;
continue
;
var
id
=
comment
.
id
.
match
(
/^comment_text_
(\d
*
)
$/
);
var
id
=
comments
[
i
].
id
.
match
(
/
\d
*$/
);
if
(
!
id
)
continue
;
id
=
id
[
1
];
var
link
=
document
.
getElementById
(
'comment_link_'
+
id
);
var
link
=
document
.
getElementById
(
'comment_link_'
+
id
);
if
(
action
==
'collapse'
)
if
(
action
==
'collapse'
)
{
collapse_comment
(
link
,
comment
,
id
);
collapse_comment
(
link
,
comment
,
id
);
else
}
else
{
expand_comment
(
link
,
comment
,
id
);
expand_comment
(
link
,
comment
,
id
);
}
}
}
}
}
...
...
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