fix notify box, add notify prompt in viewfeed

This commit is contained in:
Andrew Dolgov 2006-09-28 13:42:47 +01:00
parent 30031575b0
commit 33b8cab44f
4 changed files with 19 additions and 3 deletions

View File

@ -94,6 +94,13 @@ function viewfeed(feed, subop, is_cat, subop_param) {
debug(query); debug(query);
/* var container = document.getElementById("headlines-frame");
container.innerHTML = "<div class=\"loadingPrompt\"><img src=\"images/indicator_white.gif\">&nbsp;" +
"Loading, please wait...</div>"; */
notify("Loading, please wait...", true);
if (xmlhttp_ready(xmlhttp)) { if (xmlhttp_ready(xmlhttp)) {
xmlhttp.open("GET", query, true); xmlhttp.open("GET", query, true);
xmlhttp.onreadystatechange=headlines_callback; xmlhttp.onreadystatechange=headlines_callback;
@ -102,7 +109,6 @@ function viewfeed(feed, subop, is_cat, subop_param) {
debug("xmlhttp busy (@feeds)"); debug("xmlhttp busy (@feeds)");
} }
} catch (e) { } catch (e) {
exception_error("viewfeed", e); exception_error("viewfeed", e);
} }

View File

@ -336,13 +336,14 @@ td.notifyBox {
right : 35%; right : 35%;
min-width : 30%; min-width : 30%;
position : absolute; position : absolute;
-moz-border-radius : 3px;
font-size : x-small; font-size : x-small;
font-weight : bold; font-weight : bold;
text-align : center; text-align : center;
display : none;
float : right; float : right;
padding : 3px 20px 3px 20px; padding : 3px 20px 3px 20px;
display : none; z-index : 999;
-moz-border-radius : 3px;
} }
#dispSwitch { #dispSwitch {
@ -1224,6 +1225,12 @@ table.loginForm2 .innerLoginCell {
display : none; display : none;
} }
div.loadingPrompt {
padding : 1em;
text-align : center;
font-weight : bold;
}
/* layout */ /* layout */
#header { #header {

View File

@ -77,6 +77,8 @@
<div id="overlay"><div id="overlay_inner">Loading, please wait...</div></div> <div id="overlay"><div id="overlay_inner">Loading, please wait...</div></div>
<div id="notify" class="notify"><span id="notify_body">&nbsp;</span></div>
<div id="fatal_error"><div id="fatal_error_inner"> <div id="fatal_error"><div id="fatal_error_inner">
<h1>Fatal Error</h1> <h1>Fatal Error</h1>
<div id="fatal_error_msg">Unknown Error</div> <div id="fatal_error_msg">Unknown Error</div>

View File

@ -8,6 +8,7 @@ function headlines_callback() {
var f = document.getElementById("headlines-frame"); var f = document.getElementById("headlines-frame");
f.innerHTML = xmlhttp.responseText; f.innerHTML = xmlhttp.responseText;
update_all_counters(); update_all_counters();
notify("");
} }
} }