From 55ee009605cf0227b3838e91a0cee64b42a329ff Mon Sep 17 00:00:00 2001 From: asiekierka Date: Mon, 24 Dec 2012 13:17:54 +0100 Subject: [PATCH] PostHider: added omitted to hidelist --- js/post-hider.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/post-hider.js b/js/post-hider.js index 2aefa39f..2ae7e3b6 100644 --- a/js/post-hider.js +++ b/js/post-hider.js @@ -21,8 +21,9 @@ function phPostHandle(element) { var pbody = element.children("div.post.op").children("div.body"); var pimage = element.children("a:first").children("img"); var pbutton = element.children("div.post.op").children("p.intro").children("a.posthider"); - if(phPostHidden(id)) { element.addClass("thread-hidden"); preplies.hide(); pbody.hide(); pimage.hide(); pbutton.text("[+]"); } - else { element.removeClass("thread-hidden"); preplies.show(); pbody.show(); pimage.show(); pbutton.text("[-]"); } + var pomitted = element.children("div.post.op").children("span.omitted"); + if(phPostHidden(id)) { element.addClass("thread-hidden"); pomitted.hide(); preplies.hide(); pbody.hide(); pimage.hide(); pbutton.text("[+]"); } + else { element.removeClass("thread-hidden"); pomitted.show(); preplies.show(); pbody.show(); pimage.show(); pbutton.text("[-]"); } } $(document).ready(function(){