From 730dbf19107d42e1a6568ac7057375b9a2e58e9e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 19 May 2008 08:37:44 +0100 Subject: loading progress bar for main window --- feedlist.js | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'feedlist.js') diff --git a/feedlist.js b/feedlist.js index 3f82993d4..b222c9bdb 100644 --- a/feedlist.js +++ b/feedlist.js @@ -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!"); + } +} -- cgit v1.2.3