From: Andrew Dolgov Date: Fri, 29 Sep 2006 03:15:31 +0000 (+0100) Subject: opera compatibility fixes X-Git-Tag: 1.2.4~92 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=0e9dd1baf733dee2408108f560a7af9acbf93506;p=tt-rss.git opera compatibility fixes --- diff --git a/functions.js b/functions.js index 72638dcc..76a443d9 100644 --- a/functions.js +++ b/functions.js @@ -584,7 +584,7 @@ function parse_counters(reply, scheduled_call) { if (feeds_stored != 0) { debug("Subscribed feed number changed, refreshing feedlist"); - updateFeedList(); + setTimeout('updateFeedList(false, false)', 50); } } diff --git a/tt-rss.js b/tt-rss.js index 92572136..87b5be1b 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -36,13 +36,7 @@ function toggleTags() { function dlg_frefresh_callback() { if (xmlhttp.readyState == 4) { notify(xmlhttp.responseText); - updateFeedList(false, false); - if (_qfd_deleted_feed) { - var hframe = document.getElementById("headlines-frame"); - if (hframe) { - hframe.src = "backend.php?op=error&msg=No%20feed%20selected."; - } - } + setTimeout('updateFeedList(false, false)', 50); closeInfoBox(); } } @@ -225,7 +219,7 @@ function updateFeedList(silent, fetch) { // var feeds_frame = document.getElementById("feeds-frame"); // feeds_frame.src = query_str; - debug("updateFeedList: " + query_str); + debug("updateFeedList Q=" + query_str); if (xmlhttp_ready(xmlhttp)) { xmlhttp.open("GET", query_str, true); @@ -378,28 +372,6 @@ function init() { } } -function resize_feeds_frame() { - var f = document.getElementById("feeds-frame"); - var tf = document.getElementById("mainFooter"); - var th = document.getElementById("mainHeader"); - - var footer_height = 0; - var header_height = 0; - - if (tf) { - footer_height = tf.scrollHeight; - } - - if (th) { - header_height = th.scrollHeight; - } - - if (f) { - f.style.height = document.body.scrollHeight - footer_height - - header_height - 50 + "px"; - } -} - function init_second_stage() { try { @@ -408,7 +380,6 @@ function init_second_stage() { delCookie("ttrss_vf_test"); - updateFeedList(false, false); document.onkeydown = hotkey_handler; var tb = parent.document.forms["main_toolbar_form"]; @@ -419,14 +390,7 @@ function init_second_stage() { daemon_enabled = getInitParam("daemon_enabled") == 1; daemon_refresh_only = getInitParam("daemon_refresh_only") == 1; - // FIXME should be callled after window resize - - var h = document.getElementById("headlines"); - var c = document.getElementById("content"); - - if (navigator.userAgent.match("Opera")) { - resize_feeds_frame(); - } + setTimeout('updateFeedList(false, false)', 50); debug("second stage ok");