Mark click area as known when the post is marked as known. Fixes #52.
[Sone.git] / src / main / resources / static / javascript / sone.js
index 3c229e0..c11c436 100644 (file)
@@ -793,6 +793,7 @@ function markPostAsKnown(postElements) {
                        (function(postElement) {
                                $.getJSON("markPostAsKnown.ajax", {"formPassword": getFormPassword(), "post": getPostId(postElement)}, function(data, textStatus) {
                                        $(postElement).removeClass("new");
+                                       $(".click-to-show", postElement).removeClass("new");
                                });
                        })(postElement);
                }