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:
Michael Save 2012-03-18 23:55:01 +11:00
parent 8208d7151b
commit 21a1152ebe
3 changed files with 41 additions and 28 deletions

View file

@ -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() {