From: Andrew Dolgov Date: Wed, 21 Sep 2011 05:41:06 +0000 (+0400) Subject: viewfeed: only focus headlines tab when offset == 0 X-Git-Tag: 1.5.6~18 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=0612ce23881b280beb8001b85d7d98bb81e040da;p=tt-rss.git viewfeed: only focus headlines tab when offset == 0 --- diff --git a/feedlist.js b/feedlist.js index 54ecb895..70639a8e 100644 --- a/feedlist.js +++ b/feedlist.js @@ -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;