summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/ajax.js2
-rw-r--r--js/watch.js2
2 files changed, 3 insertions, 1 deletions
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('<br class="clear">');
$(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() {