1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-30 15:17:11 +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

@@ -47,7 +47,14 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body onload="init()">
<body>
<script type="text/javascript">
if (document.addEventListener) {
document.addEventListener("DOMContentLoaded", init, null);
}
window.onload = init;
</script>
<table width="100%" height="100%" cellspacing="0" cellpadding="0" class="main">
<? if (get_pref($link, 'DISPLAY_HEADER')) { ?>
@@ -127,5 +134,20 @@
<? db_close($link); ?>
<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>