Merge branch 'posthide' of https://github.com/asiekierka/Tinyboard
This commit is contained in:
commit
144343a7c6
@ -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));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user