From: David ‘Bombe’ Roden Date: Mon, 3 Jan 2011 18:32:01 +0000 (+0100) Subject: Update all replies of a Sone, too. X-Git-Tag: 0.4^2~8^2~11 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=14faa7d69fc58b66a9a4ad408e233e6e178c6aa0;p=Sone.git Update all replies of a Sone, too. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 09c0bb0..58917c9 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -460,6 +460,13 @@ function updateTrustControls(soneId, trustValue) { getPostElement(this).find(".post-untrust").toggleClass("hidden", trustValue == null); } }); + $(this).find("#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)); + getReplyElement(this).find(".reply-untrust").toggleClass("hidden", trustValue == null); + } + }); } function updateReplyLikes(replyId) {