From: David ‘Bombe’ Roden Date: Thu, 26 May 2011 05:07:10 +0000 (+0200) Subject: Always remove “new” marker from “click-to-show” bar. X-Git-Tag: 0.6.5^2~19 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=13871054ecbb38722714d7e0c88c4024103c3f86;p=Sone.git Always remove “new” marker from “click-to-show” bar. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index fbed217..e07a08b 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -1302,12 +1302,12 @@ function markPostAsKnown(postElements, skipRequest) { if ($(postElement).hasClass("new")) { (function(postElement) { $(postElement).removeClass("new"); - $(".click-to-show", postElement).removeClass("new"); if ((typeof skipRequest == "undefined") || !skipRequest) { ajaxGet("markAsKnown.ajax", {"formPassword": getFormPassword(), "type": "post", "id": getPostId(postElement)}); } })(postElement); } + $(".click-to-show", postElement).removeClass("new"); }); markReplyAsKnown($(postElements).find(".reply")); }