From: Andrew Dolgov Date: Fri, 24 Aug 2007 06:25:11 +0000 (+0100) Subject: code cleanups, fade effect when changing feeds X-Git-Tag: 1.2.15~69 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=19815594c882ca3f25b257dbdce76c74428d1e16;p=tt-rss.git code cleanups, fade effect when changing feeds --- diff --git a/feedlist.js b/feedlist.js index 07f218b3..91c32448 100644 --- a/feedlist.js +++ b/feedlist.js @@ -122,11 +122,6 @@ function viewfeed(feed, subop, is_cat, subop_param, skip_history, offset) { debug(query); -/* var container = document.getElementById("headlines-frame"); - - container.innerHTML = "
 " + - "Loading, please wait...
"; */ - // for piggybacked counters if (tagsAreDisplayed()) { @@ -139,15 +134,12 @@ function viewfeed(feed, subop, is_cat, subop_param, skip_history, offset) { notify_progress("Loading, please wait...", true); } -// xmlhttp.abort(); + var container = document.getElementById("headlinesInnerContainer"); -/* if (xmlhttp_ready(xmlhttp)) { - xmlhttp.open("GET", query, true); - xmlhttp.onreadystatechange=headlines_callback; - xmlhttp.send(null); - } else { - debug("xmlhttp busy (@feeds)"); - } */ + if (container && page_offset == 0) { + new Effect.Fade(container, {duration: 1, to: 0.01, + queue: { position:'end', scope: 'FeED-' + feed, limit: 1 } } ); + } new Ajax.Request(query, { asynchronous: page_offset == 0,