remove backend/error msg calls on iframe init, recolor notify error

This commit is contained in:
Andrew Dolgov 2006-05-19 03:58:00 +01:00
parent f3477b4056
commit caa53a7cb1
3 changed files with 9 additions and 10 deletions

View File

@ -111,8 +111,8 @@ function notify_real(msg, doc, no_hide, is_err) {
}
if (is_err) {
n.style.backgroundColor = "#ffaaaa";
n.style.color = "white";
n.style.backgroundColor = "#ffcccc";
n.style.color = "black";
n.style.borderColor = "#ff0000";
} else {
n.style.backgroundColor = "#fff7d5";

View File

@ -441,6 +441,9 @@ function init_second_stage() {
// FIXME should be callled after window resize
var h = document.getElementById("headlines");
var c = document.getElementById("content");
if (navigator.userAgent.match("Opera")) {
resize_feeds_frame();

View File

@ -135,8 +135,7 @@ window.onload = init;
<tr><td height="100%" width="100%" valign="top">
<iframe frameborder="0"
src="backend.php?op=error&msg=Loading,%20please wait..."
id="feeds-frame" name="feeds-frame" class="feedsFrame"> </iframe>
id="feeds-frame" name="feeds-frame" class="feedsFrame"></iframe>
</td></tr></table>
@ -251,22 +250,19 @@ window.onload = init;
<tr>
<td id="headlines" class="headlines2" valign="top">
<iframe frameborder="0" name="headlines-frame"
id="headlines-frame" class="headlinesFrame"
src="backend.php?op=error&msg=No%20feed%20selected."></iframe>
id="headlines-frame" class="headlinesFrame"></iframe>
</td>
</tr>
<? } else { ?>
<tr>
<td id="headlines" class="headlines" valign="top">
<iframe frameborder="0" name="headlines-frame"
id="headlines-frame" class="headlinesFrame"
src="backend.php?op=error&msg=No%20feed%20selected."></iframe>
id="headlines-frame" class="headlinesFrame"></iframe>
</td>
</tr><tr>
<td class="content" id="content" valign="top">
<iframe frameborder="0" name="content-frame"
id="content-frame" class="contentFrame"
src="backend.php?op=error&msg=No%20article%20selected."> </iframe>
id="content-frame" class="contentFrame"> </iframe>
</td>
</tr>
<? } ?>