From b5daec986cf9f10c953af6e0fb1bdda91a41b0a5 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 26 Aug 2005 05:36:42 +0100 Subject: [PATCH] mark currently selected post on headlines update, remove debug msg on content hash change --- functions.php | 3 --- tt-rss.js | 13 ++++++++++++- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/functions.php b/functions.php index 0de0e405..e769e79e 100644 --- a/functions.php +++ b/functions.php @@ -214,9 +214,6 @@ if (UPDATE_POST_ON_CHECKSUM_CHANGE && $orig_content_hash != $content_hash) { - - print "$orig_content_hash : $content_hash"; - $last_read_qpart = 'last_read = null,'; } diff --git a/tt-rss.js b/tt-rss.js index e1a4f385..8d289967 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -105,6 +105,8 @@ function viewfeed_callback() { var searchbox = document.getElementById("searchbox"); searchbox.value = search_query; + markHeadline(active_post_id); + notify(""); } @@ -260,8 +262,10 @@ function viewfeed(feed, skip, subop) { return } + if (active_feed_id != feed) + active_post_id = false; + active_feed_id = feed; - active_post_id = false; active_offset = skip; var query = "backend.php?op=viewfeed&feed=" + param_escape(feed) + @@ -279,6 +283,13 @@ function viewfeed(feed, skip, subop) { } +function markHeadline(id) { + var row = document.getElementById("RROW-" + id); + if (row) { + row.className = row.className + "Selected"; + } +} + function cleanSelected(element) { var content = document.getElementById(element); -- 2.39.5