Fix automatic watcher refresh condition value.
This commit is contained in:
parent
e323e97a90
commit
56c7b00744
@ -1525,7 +1525,6 @@
|
||||
favicon.src = Favicon.empty;
|
||||
}
|
||||
}
|
||||
$.setValue('watcher.lastUpdated', Date.now());
|
||||
return watcher.lastUpdated = Date.now();
|
||||
},
|
||||
cb: {
|
||||
@ -1553,7 +1552,8 @@
|
||||
watched = $.getValue('watched', {});
|
||||
delete watched[board][id];
|
||||
$.setValue('watched', watched);
|
||||
return watcher.refresh(watched);
|
||||
watcher.refresh(watched);
|
||||
return $.setValue('watcher.lastUpdated', Date.now());
|
||||
},
|
||||
watch: function(thread, id) {
|
||||
var props, tc, watched, _name;
|
||||
@ -1566,7 +1566,8 @@
|
||||
watched[_name = g.BOARD] || (watched[_name] = {});
|
||||
watched[g.BOARD][id] = props;
|
||||
$.setValue('watched', watched);
|
||||
return watcher.refresh(watched);
|
||||
watcher.refresh(watched);
|
||||
return $.setValue('watcher.lastUpdated', Date.now());
|
||||
}
|
||||
};
|
||||
anonymize = {
|
||||
|
||||
@ -1241,7 +1241,6 @@ watcher =
|
||||
favicon.src = Favicon.default
|
||||
else
|
||||
favicon.src = Favicon.empty
|
||||
$.setValue 'watcher.lastUpdated', Date.now()
|
||||
watcher.lastUpdated = Date.now()
|
||||
|
||||
cb:
|
||||
@ -1266,6 +1265,7 @@ watcher =
|
||||
$.setValue 'watched', watched
|
||||
|
||||
watcher.refresh watched
|
||||
$.setValue 'watcher.lastUpdated', Date.now()
|
||||
|
||||
watch: (thread, id) ->
|
||||
tc = $('span.filetitle', thread).textContent or $('blockquote', thread).textContent
|
||||
@ -1279,6 +1279,7 @@ watcher =
|
||||
$.setValue 'watched', watched
|
||||
|
||||
watcher.refresh watched
|
||||
$.setValue 'watcher.lastUpdated', Date.now()
|
||||
|
||||
anonymize =
|
||||
init: ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user