]> git.wh0rd.org - tt-rss.git/commitdiff
code cleanups, fade effect when changing feeds
authorAndrew Dolgov <fox@madoka.spb.ru>
Fri, 24 Aug 2007 06:25:11 +0000 (07:25 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Fri, 24 Aug 2007 06:25:11 +0000 (07:25 +0100)
feedlist.js

index 07f218b381e5f982b3a6bf3f00e9a9ee80f05226..91c3244844f296fea05867b2c4da3e9b67fea7a5 100644 (file)
@@ -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 = "<div class=\"loadingPrompt\"><img src=\"images/indicator_white.gif\">&nbsp;" +
-                       "Loading, please wait...</div>"; */
-
                // 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,