]> git.wh0rd.org Git - tt-rss.git/commitdiff
viewfeed: select News tab and display loading prompt when necessary
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 16 Nov 2010 13:57:59 +0000 (16:57 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 16 Nov 2010 13:57:59 +0000 (16:57 +0300)
feedlist.js

index bfcb943ab04d51f3d9473466ad9b5550951b4826..67875a0ec6301c278a83318e84893c79272d89fd 100644 (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;
 }