diff options
author | Andrew Dolgov <[email protected]> | 2010-11-10 14:48:35 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-10 14:48:35 +0300 |
commit | 5225d4209e52790af6bad454d7b6da6953551ace (patch) | |
tree | e2fb2529c04a189ce533ce3a122a9ae047627d56 /viewfeed.js | |
parent | c4f7ba80184042e593fdf064ff671f7c563f21e9 (diff) |
js: code cleanup; move to async counter sending mode
Diffstat (limited to 'viewfeed.js')
-rw-r--r-- | viewfeed.js | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/viewfeed.js b/viewfeed.js index 5df91c330..cb1f31b14 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -218,10 +218,7 @@ function headlines_callback2(transport, feed_cur_page) { f.innerHTML = "<div class='whiteBox'>" + __('Could not update headlines (missing XML object)') + "</div>"; } - if (typeof correctPNG != 'undefined') { - correctPNG(); - } - + if (_cdm_wd_timeout) window.clearTimeout(_cdm_wd_timeout); if (!$("headlinesList") && @@ -399,10 +396,6 @@ function article_callback2(transport, id) { var date = new Date(); last_article_view = date.getTime() / 1000; - if (typeof correctPNG != 'undefined') { - correctPNG(); - } - if (_reload_feedlist_after_view) { setTimeout('updateFeedList(false, false)', 50); _reload_feedlist_after_view = false; @@ -468,10 +461,6 @@ function view(id) { var crow = $("RROW-" + id); var article_is_unread = crow.className.match("Unread"); - if (!async_counters_work) { - query = query + "&csync=true"; - } - showArticleInHeadlines(id); if (!cached_article) { @@ -1836,7 +1825,13 @@ function cache_expire() { } function cache_flush() { - article_cache = new Array(); + if (db) { + db.execute("DELETE FROM cache"); + } else if (has_local_storage()) { + localStorage.clear(); + } else { + article_cache = new Array(); + } } function cache_invalidate(id) { |