From: David ‘Bombe’ Roden Date: Mon, 3 Jan 2011 19:01:01 +0000 (+0100) Subject: Fix iteration over all replies. X-Git-Tag: 0.4^2~8^2~10 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=b87c6016ca5830f885ee261a1b2b9106c1247af5;p=Sone.git Fix iteration over all replies. --- 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));