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

master
Andrew Dolgov 19 years ago
parent f3477b4056
commit caa53a7cb1

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

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

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

Loading…
Cancel
Save