From 9109096ea861f98059132fbd2664e4d7557cea42 Mon Sep 17 00:00:00 2001 From: Marcin Ɓabanowski Date: Sun, 26 Jan 2014 18:07:34 +0100 Subject: watch.js: update status on new own posts as fast as possible. fixes vichan-devel#41 --- js/ajax.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'js/ajax.js') 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); } }); -- cgit v1.3