Browse Source

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

pull/40/head
czaks 11 years ago
parent
commit
d134d2ae22
  1. 10
      js/post-hider.js

10
js/post-hider.js

@ -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);
}
});

Loading…
Cancel
Save