From 19815594c882ca3f25b257dbdce76c74428d1e16 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 24 Aug 2007 07:25:11 +0100 Subject: [PATCH] code cleanups, fade effect when changing feeds --- feedlist.js | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) 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,