mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-20 21:01:29 +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>
|
<script type=\"text/javascript\" src=\"pngfix.js\"></script>
|
||||||
<link rel=\"stylesheet\" type=\"text/css\" href=\"tt-rss-ie.css\">
|
<link rel=\"stylesheet\" type=\"text/css\" href=\"tt-rss-ie.css\">
|
||||||
<![endif]-->
|
<![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\">";
|
print "<ul class=\"feedList\" id=\"feedList\">";
|
||||||
|
|
||||||
@@ -627,6 +633,21 @@
|
|||||||
|
|
||||||
print "</ul>";
|
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>
|
<script type=\"text/javascript\" src=\"pngfix.js\"></script>
|
||||||
<link rel=\"stylesheet\" type=\"text/css\" href=\"tt-rss-ie.css\">
|
<link rel=\"stylesheet\" type=\"text/css\" href=\"tt-rss-ie.css\">
|
||||||
<![endif]-->
|
<![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) {
|
if ($subop == "ForceUpdate" && sprintf("%d", $feed) > 0) {
|
||||||
@@ -1564,6 +1591,22 @@
|
|||||||
update_all_counters('$feed');
|
update_all_counters('$feed');
|
||||||
</script>";
|
</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) {
|
if ($addheader) {
|
||||||
print "</body></html>";
|
print "</body></html>";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -197,6 +197,8 @@ function toggleCollapseCat(cat) {
|
|||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
try {
|
try {
|
||||||
|
if (arguments.callee.done) return;
|
||||||
|
arguments.callee.done = true;
|
||||||
hideOrShowFeeds(document, getCookie("ttrss_vf_hreadf") == 1);
|
hideOrShowFeeds(document, getCookie("ttrss_vf_hreadf") == 1);
|
||||||
document.onkeydown = hotkey_handler;
|
document.onkeydown = hotkey_handler;
|
||||||
parent.setTimeout("timeout()", 0);
|
parent.setTimeout("timeout()", 0);
|
||||||
|
|||||||
3
prefs.js
3
prefs.js
@@ -1264,6 +1264,9 @@ function init() {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
if (arguments.callee.done) return;
|
||||||
|
arguments.callee.done = true;
|
||||||
|
|
||||||
// IE kludge
|
// IE kludge
|
||||||
if (!xmlhttp) {
|
if (!xmlhttp) {
|
||||||
document.getElementById("prefContent").innerHTML =
|
document.getElementById("prefContent").innerHTML =
|
||||||
|
|||||||
24
prefs.php
24
prefs.php
@@ -47,7 +47,14 @@
|
|||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||||
</head>
|
</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">
|
<table width="100%" height="100%" cellspacing="0" cellpadding="0" class="main">
|
||||||
<? if (get_pref($link, 'DISPLAY_HEADER')) { ?>
|
<? if (get_pref($link, 'DISPLAY_HEADER')) { ?>
|
||||||
@@ -127,5 +134,20 @@
|
|||||||
|
|
||||||
<? db_close($link); ?>
|
<? 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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
13
tt-rss.js
13
tt-rss.js
@@ -301,14 +301,6 @@ function localPiggieFunction(enable) {
|
|||||||
|
|
||||||
function localHotkeyHandler(keycode) {
|
function localHotkeyHandler(keycode) {
|
||||||
|
|
||||||
/* if (keycode == 78) {
|
|
||||||
return moveToPost('next');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (keycode == 80) {
|
|
||||||
return moveToPost('prev');
|
|
||||||
} */
|
|
||||||
|
|
||||||
if (keycode == 82) { // r
|
if (keycode == 82) { // r
|
||||||
return scheduleFeedUpdate(true);
|
return scheduleFeedUpdate(true);
|
||||||
}
|
}
|
||||||
@@ -383,6 +375,11 @@ function init() {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
// this whole shebang is based on http://www.birnamdesigns.com/misc/busted2.html
|
||||||
|
|
||||||
|
if (arguments.callee.done) return;
|
||||||
|
arguments.callee.done = true;
|
||||||
|
|
||||||
disableContainerChildren("headlinesToolbar", true);
|
disableContainerChildren("headlinesToolbar", true);
|
||||||
|
|
||||||
if (!genericSanityCheck())
|
if (!genericSanityCheck())
|
||||||
|
|||||||
26
tt-rss.php
26
tt-rss.php
@@ -39,8 +39,8 @@
|
|||||||
|
|
||||||
<? } ?>
|
<? } ?>
|
||||||
|
|
||||||
<script type="text/javascript" src="functions.js"></script>
|
|
||||||
<script type="text/javascript" src="tt-rss.js"></script>
|
<script type="text/javascript" src="tt-rss.js"></script>
|
||||||
|
<script type="text/javascript" src="functions.js"></script>
|
||||||
<!--[if gte IE 5.5000]>
|
<!--[if gte IE 5.5000]>
|
||||||
<script type="text/javascript" src="pngfix.js"></script>
|
<script type="text/javascript" src="pngfix.js"></script>
|
||||||
<link rel="stylesheet" type="text/css" href="tt-rss-ie.css">
|
<link rel="stylesheet" type="text/css" href="tt-rss-ie.css">
|
||||||
@@ -48,7 +48,14 @@
|
|||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body onload="init()">
|
<body>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
if (document.addEventListener) {
|
||||||
|
document.addEventListener("DOMContentLoaded", init, null);
|
||||||
|
}
|
||||||
|
window.onload = init;
|
||||||
|
</script>
|
||||||
|
|
||||||
<? if (ENABLE_UPDATE_DAEMON && !file_is_locked("update_daemon.lock")) { ?>
|
<? if (ENABLE_UPDATE_DAEMON && !file_is_locked("update_daemon.lock")) { ?>
|
||||||
<div class="warning">
|
<div class="warning">
|
||||||
@@ -278,5 +285,20 @@
|
|||||||
|
|
||||||
<? db_close($link); ?>
|
<? 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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -380,5 +380,7 @@ function catchupPage() {
|
|||||||
|
|
||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
|
if (arguments.callee.done) return;
|
||||||
|
arguments.callee.done = true;
|
||||||
document.onkeydown = hotkey_handler;
|
document.onkeydown = hotkey_handler;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user