]> git.wh0rd.org - tt-rss.git/commitdiff
do not try to load feedlist before receiving init-params
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 31 Jan 2012 12:01:43 +0000 (16:01 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 31 Jan 2012 12:01:43 +0000 (16:01 +0400)
js/tt-rss.js

index 2cee8ae3ca44e12134bb5ef41d5dde5c640c7254..5804ee501b71185a91b49f07141b4de29ced2f99 100644 (file)
@@ -283,16 +283,6 @@ function init() {
 
                dojo.parser.parse();
 
-               dojo.addOnLoad(function() {
-                       updateFeedList();
-                       closeArticlePanel();
-
-                       if (typeof themeAfterLayout == 'function') {
-                               themeAfterLayout();
-                       }
-
-               });
-
                if (!genericSanityCheck())
                        return false;
 
@@ -314,6 +304,15 @@ function init() {
 function init_second_stage() {
 
        try {
+               dojo.addOnLoad(function() {
+                       updateFeedList();
+                       closeArticlePanel();
+
+                       if (typeof themeAfterLayout == 'function') {
+                               themeAfterLayout();
+                       }
+
+               });
 
                delCookie("ttrss_test");