From 004523dda5b91a641b278498fc6172c06ec428b9 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 3 Jun 2008 16:43:25 +0100 Subject: [PATCH] remove toggling from = hotkey, rename to f h --- feedlist.js | 3 --- help/3.php | 2 +- tt-rss.js | 10 +++++----- viewfeed.js | 3 ++- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/feedlist.js b/feedlist.js index 6ac2765d1..1cd784524 100644 --- a/feedlist.js +++ b/feedlist.js @@ -44,9 +44,6 @@ function viewNextFeedPage() { function viewfeed(feed, subop, is_cat, subop_param, skip_history, offset) { try { - // reset = hotkey - read_headlines_visible = true; - // if (!offset) page_offset = 0; last_requested_article = 0; diff --git a/help/3.php b/help/3.php index 701214ada..d24403cbc 100644 --- a/help/3.php +++ b/help/3.php @@ -38,11 +38,11 @@ - +
r
R
=
f a
f s
f e
f w
f h
q
Q
diff --git a/tt-rss.js b/tt-rss.js index a9a3b3f1b..a8dd16e88 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -1170,11 +1170,6 @@ function hotkey_handler(e) { } } } - - if (keycode == 187) { // = - hideReadHeadlines(); - return; - } } /* Prefix f */ @@ -1229,6 +1224,11 @@ function hotkey_handler(e) { return resort_feedlist(); } + if (keycode == 72) { // h + hideReadHeadlines(); + return; + } + } /* Prefix c */ diff --git a/viewfeed.js b/viewfeed.js index 05639dbc3..f8cd3f0c3 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -21,7 +21,6 @@ var vgroup_last_feed = false; var post_under_pointer = false; var last_requested_article = false; -var read_headlines_visible = true; function catchup_callback() { if (xmlhttp_rpc.readyState == 4) { @@ -1805,6 +1804,8 @@ function hideReadHeadlines() { ids = cdmGetVisibleArticles(); } + var read_headlines_visible = true; + for (var i = 0; i < ids.length; i++) { var row = document.getElementById("RROW-" + ids[i]);