forked from leftypol/leftypol
custom event for new posts, so auto-reload.js etc will work with forced-anon.js and post-hover.js
This commit is contained in:
parent
8208d7151b
commit
21a1152ebe
3 changed files with 41 additions and 28 deletions
|
@ -27,12 +27,13 @@ $(document).ready(function(){
|
|||
var id = $(this).attr('id');
|
||||
if($('#' + id).length == 0) {
|
||||
$(this).insertAfter($('div.post:last').next()).after('<br class="clear">');
|
||||
$(document).trigger('new_post', this);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
poll_interval = setTimeout(poll, 5000);
|
||||
poll_interval = setTimeout(poll, 500);
|
||||
};
|
||||
|
||||
$(window).scroll(function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue