Always collapse all posts.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 28 May 2012 11:07:33 +0000 (13:07 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 28 May 2012 11:07:33 +0000 (13:07 +0200)
src/main/resources/static/javascript/sone.js

index d9c2fb3..414dd02 100644 (file)
@@ -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");
                                        }