Fix iteration over all replies.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 3 Jan 2011 19:01:01 +0000 (20:01 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 3 Jan 2011 19:01:01 +0000 (20:01 +0100)
src/main/resources/static/javascript/sone.js

index 58917c9..d67cbc4 100644 (file)
@@ -460,7 +460,7 @@ function updateTrustControls(soneId, trustValue) {
                        getPostElement(this).find(".post-untrust").toggleClass("hidden", trustValue == null);
                }
        });
-       $(this).find("#sone .reply").each(function() {
+       $("#sone .reply").each(function() {
                if (getReplyAuthor(this) == soneId) {
                        getReplyElement(this).find(".reply-trust").toggleClass("hidden", trustValue != null);
                        getReplyElement(this).find(".reply-distrust").toggleClass("hidden", (trustValue != null) && (trustValue < 0));