From 97dcd654bb1961e43914e0502ae38d6504204e62 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 24 Feb 2006 11:15:30 +0100 Subject: [PATCH] Opera compatibility fixes --- backend.php | 47 +++++++++++++++++++++++++++++++++++++++++++++-- feedlist.js | 2 ++ prefs.js | 3 +++ prefs.php | 24 +++++++++++++++++++++++- tt-rss.js | 13 +++++-------- tt-rss.php | 26 ++++++++++++++++++++++++-- viewfeed.js | 2 ++ 7 files changed, 104 insertions(+), 13 deletions(-) diff --git a/backend.php b/backend.php index 15bb7702..4873f35e 100644 --- a/backend.php +++ b/backend.php @@ -354,7 +354,13 @@ - "; + + "; print ""; + print ' + '; } @@ -1051,7 +1072,13 @@ - "; + + "; } if ($subop == "ForceUpdate" && sprintf("%d", $feed) > 0) { @@ -1564,6 +1591,22 @@ update_all_counters('$feed'); "; + print ' + '; + if ($addheader) { print ""; } diff --git a/feedlist.js b/feedlist.js index 8495be51..7dcb68fa 100644 --- a/feedlist.js +++ b/feedlist.js @@ -197,6 +197,8 @@ function toggleCollapseCat(cat) { function init() { try { + if (arguments.callee.done) return; + arguments.callee.done = true; hideOrShowFeeds(document, getCookie("ttrss_vf_hreadf") == 1); document.onkeydown = hotkey_handler; parent.setTimeout("timeout()", 0); diff --git a/prefs.js b/prefs.js index f5e5a2cc..3aa769e5 100644 --- a/prefs.js +++ b/prefs.js @@ -1264,6 +1264,9 @@ function init() { try { + if (arguments.callee.done) return; + arguments.callee.done = true; + // IE kludge if (!xmlhttp) { document.getElementById("prefContent").innerHTML = diff --git a/prefs.php b/prefs.php index 71be4033..75370f9f 100644 --- a/prefs.php +++ b/prefs.php @@ -47,7 +47,14 @@ - + + + @@ -127,5 +134,20 @@ + + diff --git a/tt-rss.js b/tt-rss.js index 0fbced1b..7b96bf38 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -301,14 +301,6 @@ function localPiggieFunction(enable) { function localHotkeyHandler(keycode) { -/* if (keycode == 78) { - return moveToPost('next'); - } - - if (keycode == 80) { - return moveToPost('prev'); - } */ - if (keycode == 82) { // r return scheduleFeedUpdate(true); } @@ -383,6 +375,11 @@ function init() { 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); if (!genericSanityCheck()) diff --git a/tt-rss.php b/tt-rss.php index 37eed61a..89982ca1 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -39,8 +39,8 @@ - +