]> git.wh0rd.org Git - tt-rss.git/commitdiff
precache_headlines: fix typo which caused 2 requests of same feed
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 10 Jul 2012 20:29:36 +0000 (00:29 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 10 Jul 2012 20:29:36 +0000 (00:29 +0400)
js/viewfeed.js

index e8d449a239f145bbcc4d2d7947385188c3e9d2f0..a4e9f82c052e77cb56959ab802a63bccd7b62b40 100644 (file)
@@ -2083,7 +2083,7 @@ function precache_headlines() {
                                if (nuf && !cache_get("feed:" + nuf + ":" + activeFeedIsCat()))
                                        viewfeed(nuf, '', activeFeedIsCat(), 0, true);
 
-                               if (nf != nuf && nf && !cache_get("feed:" + nf[0] + ":" + nf[1]))
+                               if (nf && nf[0] != nuf && !cache_get("feed:" + nf[0] + ":" + nf[1]))
                                        viewfeed(nf[0], '', nf[1], 0, true);
 
                                window.setTimeout(function() {