diff options
author | Andrew Dolgov <[email protected]> | 2010-11-12 18:15:08 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-12 18:15:08 +0300 |
commit | 5caea52260466252577de91658bc7f025784b421 (patch) | |
tree | 439344277aa1d0da7e9d4ae78e8aa7531bc11b5a | |
parent | 5b463b229c62142e8935bd2f7b0e2bb8b403b8e3 (diff) |
mark article in headlines in view() to speed up keyboard navigation
-rw-r--r-- | viewfeed.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/viewfeed.js b/viewfeed.js index f914cada0..07fe859fa 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -338,7 +338,7 @@ function article_callback2(transport, id) { return; } - active_post_id = id; +// active_post_id = id; //console.log("looking for articles to cache..."); @@ -358,7 +358,7 @@ function article_callback2(transport, id) { } - showArticleInHeadlines(id); +// showArticleInHeadlines(id); if (db) { db.execute("UPDATE articles SET unread = 0 WHERE id = ?", [id]); @@ -430,6 +430,7 @@ function view(id) { var crow = $("RROW-" + id); var article_is_unread = crow.className.match("Unread"); + active_post_id = id; showArticleInHeadlines(id); if (!cached_article) { |