From: David ‘Bombe’ Roden Date: Sun, 16 Jan 2011 14:18:29 +0000 (+0100) Subject: Don’t show distrust button when trust is assigned. Fixes #55. X-Git-Tag: 0.4.2^2~43 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=cc8499e32a85051b1f8c387d65378f943ee7b00e;p=Sone.git Don’t show distrust button when trust is assigned. Fixes #55. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 7fe842b..e790e9e 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -457,14 +457,14 @@ function updateTrustControls(soneId, trustValue) { $("#sone .post").each(function() { if (getPostAuthor(this) == soneId) { getPostElement(this).find(".post-trust").toggleClass("hidden", trustValue != null); - getPostElement(this).find(".post-distrust").toggleClass("hidden", (trustValue != null) && (trustValue < 0)); + getPostElement(this).find(".post-distrust").toggleClass("hidden", trustValue != null); getPostElement(this).find(".post-untrust").toggleClass("hidden", trustValue == null); } }); $("#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-distrust").toggleClass("hidden", trustValue != null); getReplyElement(this).find(".reply-untrust").toggleClass("hidden", trustValue == null); } }); diff --git a/src/main/resources/templates/include/viewPost.html b/src/main/resources/templates/include/viewPost.html index 6d96840..64fddea 100644 --- a/src/main/resources/templates/include/viewPost.html +++ b/src/main/resources/templates/include/viewPost.html @@ -48,7 +48,7 @@ -
+ diff --git a/src/main/resources/templates/include/viewReply.html b/src/main/resources/templates/include/viewReply.html index 2fbca43..4daf302 100644 --- a/src/main/resources/templates/include/viewReply.html +++ b/src/main/resources/templates/include/viewReply.html @@ -40,7 +40,7 @@
-
+