diff options
author | Andrew Dolgov <[email protected]> | 2005-08-26 05:36:42 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-08-26 05:36:42 +0100 |
commit | b5daec986cf9f10c953af6e0fb1bdda91a41b0a5 (patch) | |
tree | ee7c199eea9de1a8e6e66ddab0900228570c1122 /tt-rss.js | |
parent | d5caaae569123e62240910c53e8bfcbf4162fad6 (diff) |
mark currently selected post on headlines update, remove debug msg on content hash change
Diffstat (limited to 'tt-rss.js')
-rw-r--r-- | tt-rss.js | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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); |