Browse Source

watch.js: update status on new own posts as fast as possible. fixes vichan-devel#41

pull/40/head
Marcin Łabanowski 10 years ago
parent
commit
9109096ea8
  1. 2
      js/ajax.js
  2. 2
      js/watch.js

2
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);
}
});

2
js/watch.js

@ -360,7 +360,7 @@ $(function(){
fetch_jsons();
refresh = false;
}
});
}).trigger("scroll");
if (typeof add_title_collector != "undefined")
add_title_collector(function() {

Loading…
Cancel
Save