watch.js: try refreshing threads a bit smarter

This commit is contained in:
czaks 2013-12-29 22:32:07 +01:00
parent a626f4afd7
commit 12b4bf028c

View File

@ -320,7 +320,7 @@ $(function(){
if (!status) return; if (!status) return;
var refresh = false; var refresh = false;
for(var bid in status) { for(var bid in status) {
if (status[bid].new_threads && (active_page == "ukko" || active_page == "index") if ((status[bid].new_threads && (active_page == "ukko" || active_page == "index")) || status[bid].new_threads == 1
&& check_post(this, $('[data-board="'+bid+'"]#thread_'+status[bid].last_thread))) { && check_post(this, $('[data-board="'+bid+'"]#thread_'+status[bid].last_thread))) {
var st = storage() var st = storage()
st[bid].watched = time_loaded; st[bid].watched = time_loaded;