]> git.wh0rd.org Git - tt-rss.git/commitdiff
invalidate headline cache when updated article is clicked
authorAndrew Dolgov <fox@madoka.spb.ru>
Thu, 22 Nov 2007 05:15:21 +0000 (06:15 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Thu, 22 Nov 2007 05:15:21 +0000 (06:15 +0100)
viewfeed.js

index aa3a148374d4cf397d7a63b72b05f482b10623d7..2b264b0a808f8bb49858f0cdbc8c0781a0e0428b 100644 (file)
@@ -250,8 +250,18 @@ function showArticleInHeadlines(id) {
                
                var upd_img_pic = document.getElementById("FUPDPIC-" + id);
                
-               if (upd_img_pic) {
+               if (upd_img_pic && upd_img_pic.src.match("updated.png")) {
                        upd_img_pic.src = "images/blank_icon.gif";
+
+                       var cache_prefix = "";
+                               
+                       if (activeFeedIsCat()) {
+                               cache_prefix = "C:";
+                       } else {
+                               cache_prefix = "F:";
+                       }
+
+                       cache_invalidate(cache_prefix + getActiveFeedId());
                }
                
                selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', false);