From b87c6016ca5830f885ee261a1b2b9106c1247af5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 3 Jan 2011 20:01:01 +0100 Subject: [PATCH] Fix iteration over all replies. --- src/main/resources/static/javascript/sone.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 58917c9..d67cbc4 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -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)); -- 2.7.4