]> git.wh0rd.org Git - tt-rss.git/commitdiff
viewfeed: better checking for reopening current feed
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 10 Oct 2012 12:31:33 +0000 (16:31 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 10 Oct 2012 12:31:33 +0000 (16:31 +0400)
js/feedlist.js

index b737ba84a1ad899090bcd3fed3bc42912d8c73de..972fa3b1efd0f6324e04dd25ad4eab30cddf3287 100644 (file)
@@ -70,7 +70,7 @@ function viewfeed(feed, method, is_cat, offset, background, infscroll_req) {
 
                var cached_headlines = false;
 
-               if (feed == getActiveFeedId()) {
+               if (feed == getActiveFeedId() && activeFeedIsCat() == is_cat) {
                        cache_delete("feed:" + feed + ":" + is_cat);
                } else {
                        cached_headlines = cache_get("feed:" + feed + ":" + is_cat);