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:
47
backend.php
47
backend.php
@@ -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>";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user