summaryrefslogtreecommitdiff
path: root/js/ajax.js
diff options
context:
space:
mode:
authorMarcin Łabanowski <marcin@6irc.net>2014-01-26 18:07:34 +0100
committerMarcin Łabanowski <marcin@6irc.net>2014-01-26 18:07:34 +0100
commit9109096ea861f98059132fbd2664e4d7557cea42 (patch)
treec290968d52618963cf71237a25be486f927aeb9a /js/ajax.js
parent46d527ecf69772b89e369e61903a85c6792b9150 (diff)
watch.js: update status on new own posts as fast as possible. fixes vichan-devel#41
Diffstat (limited to 'js/ajax.js')
-rw-r--r--js/ajax.js2
1 files changed, 2 insertions, 0 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);
}
});