code cleanups, fade effect when changing feeds

This commit is contained in:
Andrew Dolgov 2007-08-24 07:25:11 +01:00
parent c4587ce39c
commit 19815594c8

View file

@ -122,11 +122,6 @@ function viewfeed(feed, subop, is_cat, subop_param, skip_history, offset) {
debug(query); debug(query);
/* var container = document.getElementById("headlines-frame");
container.innerHTML = "<div class=\"loadingPrompt\"><img src=\"images/indicator_white.gif\">&nbsp;" +
"Loading, please wait...</div>"; */
// for piggybacked counters // for piggybacked counters
if (tagsAreDisplayed()) { if (tagsAreDisplayed()) {
@ -139,15 +134,12 @@ function viewfeed(feed, subop, is_cat, subop_param, skip_history, offset) {
notify_progress("Loading, please wait...", true); notify_progress("Loading, please wait...", true);
} }
// xmlhttp.abort(); var container = document.getElementById("headlinesInnerContainer");
/* if (xmlhttp_ready(xmlhttp)) { if (container && page_offset == 0) {
xmlhttp.open("GET", query, true); new Effect.Fade(container, {duration: 1, to: 0.01,
xmlhttp.onreadystatechange=headlines_callback; queue: { position:'end', scope: 'FeED-' + feed, limit: 1 } } );
xmlhttp.send(null); }
} else {
debug("xmlhttp busy (@feeds)");
} */
new Ajax.Request(query, { new Ajax.Request(query, {
asynchronous: page_offset == 0, asynchronous: page_offset == 0,