From: Andrew Dolgov Date: Fri, 24 Feb 2006 10:15:30 +0000 (+0100) Subject: Opera compatibility fixes X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=97dcd654bb1961e43914e0502ae38d6504204e62;p=tt-rss.git Opera compatibility fixes --- 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 @@ - +