1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-24 15:40:12 +01:00
This commit is contained in:
Marcin Łabanowski 2012-12-24 13:47:36 +01:00
commit 144343a7c6

View File

@ -32,11 +32,12 @@ $(document).ready(function(){
var pin = $(this).children("div.post.op").children("p.intro"); var pin = $(this).children("div.post.op").children("p.intro");
var tid = phGetOpID($(this)); var tid = phGetOpID($(this));
if(tid != NaN) { if(tid != NaN) {
$("<a class='posthider'>[?]</a>").insertAfter(pin.children('a:last')).click(function(e) { $("<a href='javascript:;' class='posthider'>[?]</a>").insertAfter(pin.children('a:last')).click(function(e) {
var eO = $(e.target); var eO = $(e.target);
var par = eO.parent().parent().parent(); var par = eO.parent().parent().parent();
phPostToggle(phGetOpID(par)); phPostToggle(phGetOpID(par));
phPostHandle(par); phPostHandle(par);
return false;
}); });
phPostHandle($(this)); phPostHandle($(this));
} }