]> git.wh0rd.org - tt-rss.git/blobdiff - feedlist.js
loading progress bar for main window
[tt-rss.git] / feedlist.js
index 3f82993d4aa3add3fdf44ce74a49ec7754cb925d..b222c9bdb93590cda3ea0e92bc76a6b8e03dc017 100644 (file)
@@ -321,20 +321,22 @@ function feedlist_init() {
 //             if (arguments.callee.done) return;
 //             arguments.callee.done = true;           
                
+               loading_set_progress(80);
+
                debug("in feedlist init");
                
                hideOrShowFeeds(document, getInitParam("hide_read_feeds") == 1);
                document.onkeydown = hotkey_handler;
                setTimeout("timeout()", 0);
 
-               debug("about to remove splash, OMG!");
+/*             debug("about to remove splash, OMG!");
 
                var o = document.getElementById("overlay");
 
                if (o) {
                        o.style.display = "none";
                        debug("removed splash!");
-               }
+               } */
 
                if (typeof correctPNG != 'undefined') {
                        correctPNG();
@@ -345,7 +347,10 @@ function feedlist_init() {
                        setTimeout("viewCurrentFeed()", 100);
                } else {
                        if (getInitParam("cdm_auto_catchup") != 1) {                            
+                               notify_silent_next();
                                setTimeout("viewfeed(-3)", 100);
+                       } else {
+                               remove_splash();
                        }
                }
 
@@ -361,6 +366,8 @@ function feedlist_init() {
 
                init_collapsable_feedlist(getInitParam("theme"));
 
+               loading_set_progress(80);
+
        } catch (e) {
                exception_error("feedlist/init", e);
        }
@@ -453,3 +460,14 @@ function init_collapsable_feedlist(theme) {
        }
 
 }
+
+function remove_splash() {
+       debug("about to remove splash, OMG!");
+
+       var o = document.getElementById("overlay");
+
+       if (o) {
+               o.style.display = "none";
+               debug("removed splash!");
+       } 
+}