diff --git a/js/ajax.js b/js/ajax.js index 94f033c3..f456099d 100644 --- a/js/ajax.js +++ b/js/ajax.js @@ -85,6 +85,8 @@ $(window).ready(function() { if($('#' + id).length == 0) { $(this).insertAfter($('div.post:last').next()).after('
'); $(document).trigger('new_post', this); + // watch.js & auto-reload.js retrigger + setTimeout(function() { window.trigger("scroll"); }, 100); } }); diff --git a/js/watch.js b/js/watch.js index 91b325e4..f7795db5 100644 --- a/js/watch.js +++ b/js/watch.js @@ -360,7 +360,7 @@ $(function(){ fetch_jsons(); refresh = false; } - }); + }).trigger("scroll"); if (typeof add_title_collector != "undefined") add_title_collector(function() {