From: David ‘Bombe’ Roden Date: Mon, 28 May 2012 11:07:33 +0000 (+0200) Subject: Always collapse all posts. X-Git-Tag: 0.8.2^2~14 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=81ebd8d01efe947d6c2e4f0fe263730c59ff6dca;p=Sone.git Always collapse all posts. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index d9c2fb3..414dd02 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -1949,7 +1949,7 @@ $(document).ready(function() { allReplies = $(this).find(".reply"); if (allReplies.length > 2) { newHidden = false; - for (replyIndex = 0; !newHidden && (replyIndex < (allReplies.length - 2)); ++replyIndex) { + for (replyIndex = 0; replyIndex < (allReplies.length - 2); ++replyIndex) { $(allReplies[replyIndex]).addClass("hidden"); newHidden |= $(allReplies[replyIndex]).hasClass("new"); }