1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-25 16:00:22 +01:00

PostHider: added opacity

This commit is contained in:
asiekierka 2012-12-24 13:04:06 +01:00
parent 66760789e1
commit ed77ee7874
2 changed files with 5 additions and 2 deletions

View File

@ -21,8 +21,8 @@ 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("post-hidden"); preplies.hide(); pbody.hide(); pimage.hide(); pbutton.text("[+]"); }
else { element.removeClass("post-hidden"); preplies.show(); pbody.show(); pimage.show(); pbutton.text("[-]"); }
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("[-]"); }
}
$(document).ready(function(){

View File

@ -453,3 +453,6 @@ table.mod.config-editor input[type="text"] {
background-color: #fff;
opacity: 0.8;
}
.thread-hidden {
opacity: 0.5;
}