diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/viewfeed.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js index 3d23e4c06..7813ab7ef 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -205,7 +205,7 @@ function headlines_callback2(transport, offset, background, infscroll_req) { } _infscroll_request_sent = 0; - _last_headlines_update = new Date().getTime() / 1000; + _last_headlines_update = new Date().getTime(); unpackVisibleHeadlines(); @@ -1210,9 +1210,8 @@ function headlines_scroll_handler(e) { if (getInitParam("cdm_auto_catchup") == 1) { // let's get DOM some time to settle down - var ts = new Date().getTime() / 1000; - - if (ts - _last_headlines_update < 3) return; + var ts = new Date().getTime(); + if (ts - _last_headlines_update < 100) return; $$("#headlines-frame > div[id*=RROW][class*=Unread]").each( function(child) { @@ -1259,7 +1258,11 @@ function catchupBatchedArticles() { onComplete: function(transport) { handle_rpc_json(transport); + reply = JSON.parse(transport.responseText); + var batch = reply.ids; + batch.each(function(id) { + console.log(id); var elem = $("RROW-" + id); if (elem) elem.removeClassName("Unread"); catchup_id_batch.remove(id); |