Bug 974411: js/comments.js::toggle_all_comments() shouldn't try to match
non-comment elements r=gerv, a=glob git-svn-id: svn://10.0.0.236/trunk@265314 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
99a0b8c16a
commit
68304d9eab
@ -1 +1 @@
|
||||
8978
|
||||
8979
|
||||
@ -1 +1 @@
|
||||
3ef245b21a397e5253ba1bda607a1510245d5c09
|
||||
ad9b149541d21e6e4e782da9785ba5fd16e9ccc7
|
||||
@ -40,13 +40,16 @@ function toggle_all_comments(action) {
|
||||
var comment = comments[i];
|
||||
if (!comment)
|
||||
continue;
|
||||
|
||||
var id = comments[i].id.match(/\d*$/);
|
||||
var id = comment.id.match(/^comment_text_(\d*)$/);
|
||||
if (!id)
|
||||
continue;
|
||||
id = id[1];
|
||||
var link = document.getElementById('comment_link_' + id);
|
||||
if (action == 'collapse')
|
||||
if (action == 'collapse') {
|
||||
collapse_comment(link, comment, id);
|
||||
else
|
||||
} else {
|
||||
expand_comment(link, comment, id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user