]> git.wh0rd.org Git - tt-rss.git/commitdiff
viewfeed: only focus headlines tab when offset == 0
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 21 Sep 2011 05:41:06 +0000 (09:41 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 21 Sep 2011 05:41:06 +0000 (09:41 +0400)
feedlist.js

index 54ecb895d562c53dd6f11f97a615f1b53070ce97..70639a8e7509ade8384f5d2a54d5995239bc5a3e 100644 (file)
@@ -66,8 +66,9 @@ function viewfeed(feed, subop, is_cat, offset, background) {
                else
                        cached_headlines = cache_get("feed:" + feed + ":" + is_cat);
 
-               dijit.byId("content-tabs").selectChild(
-                       dijit.byId("content-tabs").getChildren()[0]);
+               if (offset == 0)
+                       dijit.byId("content-tabs").selectChild(
+                               dijit.byId("content-tabs").getChildren()[0]);
 
                var force_nocache = false;