diff options
| author | Marcin Łabanowski <marcin@6irc.net> | 2014-01-26 18:07:34 +0100 |
|---|---|---|
| committer | Marcin Łabanowski <marcin@6irc.net> | 2014-01-26 18:07:34 +0100 |
| commit | 9109096ea861f98059132fbd2664e4d7557cea42 (patch) | |
| tree | c290968d52618963cf71237a25be486f927aeb9a /js | |
| parent | 46d527ecf69772b89e369e61903a85c6792b9150 (diff) | |
watch.js: update status on new own posts as fast as possible. fixes vichan-devel#41
Diffstat (limited to 'js')
| -rw-r--r-- | js/ajax.js | 2 | ||||
| -rw-r--r-- | js/watch.js | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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() { |
