From 997d9d7cad31d5fdd3d054b95bd952a6f0367be9 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 20 May 2008 16:59:42 +0100 Subject: view: request counters in background, request_counters(): add client rate limit --- viewfeed.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'viewfeed.js') diff --git a/viewfeed.js b/viewfeed.js index 16f96216a..bd548ced9 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -325,7 +325,7 @@ function article_callback2(transport, id, feed_id) { active_real_feed_id = feed_id; active_post_id = id; - //showArticleInHeadlines(id); + showArticleInHeadlines(id); var reply = transport.responseXML.firstChild.firstChild; @@ -367,7 +367,8 @@ function article_callback2(transport, id, feed_id) { debug("parsing piggybacked counters: " + counters); parse_counters(counters, false); } else { - debug("counters container not found in reply"); + debug("counters container not found in reply, requesting..."); + request_counters(); } } @@ -426,8 +427,6 @@ function view(id, feed_id, skip_history) { var crow = document.getElementById("RROW-" + id); var article_is_unread = crow.className.match("Unread"); - showArticleInHeadlines(id); - if (!cached_article) { notify_progress("Loading, please wait..."); @@ -442,6 +441,8 @@ function view(id, feed_id, skip_history) { query = query + "&mode=prefetch_old"; render_article(cached_article); + showArticleInHeadlines(id); + } cache_expire(); -- cgit v1.2.3