]> git.wh0rd.org Git - tt-rss.git/commitdiff
mark currently selected post on headlines update, remove debug msg on content hash...
authorAndrew Dolgov <fox@madoka.spb.ru>
Fri, 26 Aug 2005 04:36:42 +0000 (05:36 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Fri, 26 Aug 2005 04:36:42 +0000 (05:36 +0100)
functions.php
tt-rss.js

index 0de0e405600143320867606fbbc2dd4b56a12d8f..e769e79ea38305be5bd0ea6089bfb4290decf475 100644 (file)
                                
                                        if (UPDATE_POST_ON_CHECKSUM_CHANGE && 
                                                        $orig_content_hash != $content_hash) {
-
-                                       print "$orig_content_hash : $content_hash";
-
                                                $last_read_qpart = 'last_read = null,';
                                        }
 
index e1a4f3857a193a7ccfdb117b735cc63f57dbb8a3..8d289967f81c904836e08ade13f7277120d62d3c 100644 (file)
--- 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);