Always remove “new” marker from “click-to-show” bar.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 26 May 2011 05:07:10 +0000 (07:07 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 26 May 2011 05:07:10 +0000 (07:07 +0200)
src/main/resources/static/javascript/sone.js

index fbed217..e07a08b 100644 (file)
@@ -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"));
 }