Skip to content

Commit

Permalink
(Bug 4903) Check whether we have a .full element properly
Browse files Browse the repository at this point in the history
find(".full") returns an empty array [] when there's no full elements.
Which means that we falsely assume that this comment has been expanded
and mark it as such. Which then breaks nested expansion. Tsk.
  • Loading branch information
afuna committed Mar 5, 2013
1 parent 774f2b7 commit 8f2d966
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/js/jquery.threadexpander.js
Expand Up @@ -145,7 +145,7 @@
LJ[cmtId].full = true;
}
} else {
if (newComment.find(".full")) {
if (newComment.find(".full").length > 0) {
LJ[cmtId].full = true;
setFull(cmtElement, true);
}
Expand Down

0 comments on commit 8f2d966

Please sign in to comment.