// 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();
setTimeout("viewCurrentFeed()", 100);
} else {
if (getInitParam("cdm_auto_catchup") != 1) {
+ notify_silent_next();
setTimeout("viewfeed(-3)", 100);
+ } else {
+ remove_splash();
}
}
init_collapsable_feedlist(getInitParam("theme"));
+ loading_set_progress(80);
+
} catch (e) {
exception_error("feedlist/init", e);
}
}
}
+
+function remove_splash() {
+ debug("about to remove splash, OMG!");
+
+ var o = document.getElementById("overlay");
+
+ if (o) {
+ o.style.display = "none";
+ debug("removed splash!");
+ }
+}
var hotkeys_enabled = true;
var debug_mode_enabled = false;
var xmlhttp_rpc = Ajax.getTransport();
+var notify_silent = false;
/* add method to remove element from array */
}
}
+function notify_silent_next() {
+ notify_silent = true;
+}
+
function notify_real(msg, no_hide, n_type) {
+ if (notify_silent) {
+ notify_silent = false;
+ return;
+ }
+
var n = document.getElementById("notify");
var nb = document.getElementById("notify_body");
return false;
}
+function loading_set_progress(v) {
+ try {
+ var o = document.getElementById("l_progress_i");
+ o.style.width = (v*2) + "px";
+
+ } catch (e) {
+ exception_error("loading_set_progress", e);
+ }
+}
#overlay_inner {
font-weight : bold;
- text-align : center;
margin : 10px;
}
div.prefKbdHelp img {
vertical-align : middle;
}
+
+div#l_progress_o {
+ width : 200px;
+ border : 1px solid black;
+ background-color : white;
+ margin-top : 10px;
+}
+
+div#l_progress_i {
+ width : 10px;
+ background-color : #88b0f0;
+ padding : 5px;
+}
try {
+ loading_set_progress(30);
+
// this whole shebang is based on http://www.birnamdesigns.com/misc/busted2.html
if (arguments.callee.done) return;
debug("second stage ok");
+ loading_set_progress(60);
+
} catch (e) {
exception_error("init_second_stage", e);
}
<div id="overlay">
<div id="overlay_inner">
- <p><?php echo __("Loading, please wait...") ?></p>
+ <?php echo __("Loading, please wait...") ?>
+
+ <div id="l_progress_o">
+ <div id="l_progress_i"> </div>
+ </div>
+
<noscript>
<div class="error"><?php echo
__("Your browser doesn't support Javascript, which is required
function headlines_callback2(transport, active_feed_id, is_cat, feed_cur_page) {
try {
+ loading_set_progress(100);
+
debug("headlines_callback2 [page=" + feed_cur_page + "]");
clean_feed_selections();
debug("headlines_callback: returned no data");
notify_error("Error while trying to load more headlines");
}
-
+
}
if (articles) {
_infscroll_request_sent = 0;
notify("");
+
+ remove_splash();
+
} catch (e) {
exception_error("headlines_callback2", e);
}