1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-30 18:24:29 +01:00

post-hider.js: further code cleanup; fix displaying on board pages

This commit is contained in:
czaks 2013-06-24 09:05:33 -04:00
parent 0cae0d70b8
commit d134d2ae22

View File

@ -30,8 +30,7 @@ function phPostHandle(element) {
else { element.removeClass("thread-hidden"); pomitted.show(); preplies.show(); pbody.show(); pimage.show(); pbutton.text("[]"); }
}
$(document).ready(function(){
$('form[name="postcontrols"] > div[id^="thread"]').each(function(index, element){
function phHandleThread(index, element) {
// Get thread ID.
var pin = $(this).children("div.post.op").children("p.intro");
var tid = phGetOpID($(this));
@ -45,5 +44,10 @@ $(document).ready(function(){
});
phPostHandle($(this));
}
});
}
$(document).ready(function(){
if (active_page != "thread") {
$('form[name="postcontrols"] > div[id^="thread"]').each(phHandleThread);
}
});