mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-12-01 18:47:20 +01:00
watch.js: update status on new own posts as fast as possible. fixes vichan-devel#41
This commit is contained in:
parent
7e38cf8af3
commit
646c99ab58
@ -85,6 +85,8 @@ $(window).ready(function() {
|
|||||||
if($('#' + id).length == 0) {
|
if($('#' + id).length == 0) {
|
||||||
$(this).insertAfter($('div.post:last').next()).after('<br class="clear">');
|
$(this).insertAfter($('div.post:last').next()).after('<br class="clear">');
|
||||||
$(document).trigger('new_post', this);
|
$(document).trigger('new_post', this);
|
||||||
|
// watch.js & auto-reload.js retrigger
|
||||||
|
setTimeout(function() { window.trigger("scroll"); }, 100);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -360,7 +360,7 @@ $(function(){
|
|||||||
fetch_jsons();
|
fetch_jsons();
|
||||||
refresh = false;
|
refresh = false;
|
||||||
}
|
}
|
||||||
});
|
}).trigger("scroll");
|
||||||
|
|
||||||
if (typeof add_title_collector != "undefined")
|
if (typeof add_title_collector != "undefined")
|
||||||
add_title_collector(function() {
|
add_title_collector(function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user