viewfeed: select News tab and display loading prompt when necessary

This commit is contained in:
Andrew Dolgov 2010-11-16 16:57:59 +03:00
parent 968410132d
commit f92d7c2b6b
1 changed files with 7 additions and 1 deletions

View File

@ -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;
}