1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-30 15:21:31 +00:00

Opera compatibility fixes

This commit is contained in:
Andrew Dolgov
2006-02-24 11:15:30 +01:00
parent 98bea1b163
commit 97dcd654bb
7 changed files with 104 additions and 13 deletions

View File

@@ -354,7 +354,13 @@
<script type=\"text/javascript\" src=\"pngfix.js\"></script>
<link rel=\"stylesheet\" type=\"text/css\" href=\"tt-rss-ie.css\">
<![endif]-->
</head><body onload=\"init()\">";
</head><body>
<script type=\"text/javascript\">
if (document.addEventListener) {
document.addEventListener(\"DOMContentLoaded\", init, null);
}
window.onload = init;
</script>";
print "<ul class=\"feedList\" id=\"feedList\">";
@@ -627,6 +633,21 @@
print "</ul>";
print '
<script type="text/javascript">
/* for IE */
function statechange() {
if (document.readyState == "interactive") init();
}
if (document.readyState) {
if (document.readyState == "interactive" || document.readyState == "complete") {
init();
} else {
document.onreadystatechange = statechange;
}
}
</script></body></html>';
}
@@ -1051,7 +1072,13 @@
<script type=\"text/javascript\" src=\"pngfix.js\"></script>
<link rel=\"stylesheet\" type=\"text/css\" href=\"tt-rss-ie.css\">
<![endif]-->
</head><body onload='init()'>";
</head><body>
<script type=\"text/javascript\">
if (document.addEventListener) {
document.addEventListener(\"DOMContentLoaded\", init, null);
}
window.onload = init;
</script>";
}
if ($subop == "ForceUpdate" && sprintf("%d", $feed) > 0) {
@@ -1564,6 +1591,22 @@
update_all_counters('$feed');
</script>";
print '
<script type="text/javascript">
/* for IE */
function statechange() {
if (document.readyState == "interactive") init();
}
if (document.readyState) {
if (document.readyState == "interactive" || document.readyState == "complete") {
init();
} else {
document.onreadystatechange = statechange;
}
}
</script>';
if ($addheader) {
print "</body></html>";
}