From: Andrew Dolgov Date: Tue, 16 Nov 2010 13:57:59 +0000 (+0300) Subject: viewfeed: select News tab and display loading prompt when necessary X-Git-Tag: 1.5.0~188 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f92d7c2b6ba7ccd2d4af4c53c4c029f7d50b8293;p=tt-rss.git viewfeed: select News tab and display loading prompt when necessary --- diff --git a/feedlist.js b/feedlist.js index bfcb943a..67875a0e 100644 --- a/feedlist.js +++ b/feedlist.js @@ -64,6 +64,9 @@ function viewfeed(feed, subop, is_cat, offset) { } } */ + dijit.byId("content-tabs").selectChild( + dijit.byId("content-tabs").getChildren()[0]); + var force_nocache = false; var page_offset = 0; @@ -225,7 +228,8 @@ function viewfeed(feed, subop, is_cat, offset) { } else { if (!is_cat) - setFeedExpandoIcon(feed, is_cat, 'images/indicator_white.gif'); + if (!setFeedExpandoIcon(feed, is_cat, 'images/indicator_white.gif')) + notify_progress("Loading, please wait...", true); new Ajax.Request("backend.php", { parameters: query, @@ -869,9 +873,11 @@ function setFeedExpandoIcon(feed, is_cat, src) { if (treeNode) { treeNode = treeNode[0]; treeNode.expandoNode.src = src; + return true; } } catch (e) { exception_error("setFeedIcon", e); } + return false; }