From 8f2d96681fd097a5c8fc691ccd66c45e1079239e Mon Sep 17 00:00:00 2001 From: Afuna Date: Tue, 5 Mar 2013 18:44:49 +0800 Subject: [PATCH] (Bug 4903) Check whether we have a .full element properly 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. --- htdocs/js/jquery.threadexpander.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/js/jquery.threadexpander.js b/htdocs/js/jquery.threadexpander.js index 66ec780397..516fd96a70 100644 --- a/htdocs/js/jquery.threadexpander.js +++ b/htdocs/js/jquery.threadexpander.js @@ -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); }