]> git.wh0rd.org Git - tt-rss.git/commitdiff
properly display loading indicators in category titles
authorAndrew Dolgov <fox@bah.org.ru>
Wed, 7 Oct 2009 10:44:51 +0000 (14:44 +0400)
committerAndrew Dolgov <fox@bah.org.ru>
Wed, 7 Oct 2009 10:44:51 +0000 (14:44 +0400)
feedlist.js
viewfeed.js

index 37c80001a6ee038a532b8d18eee8b49bd89a2b67..3a5274a1300be1f8a0d1d02b47bfbbbdc719f730 100644 (file)
@@ -315,7 +315,13 @@ function viewfeed(feed, subop, is_cat, subop_param, skip_history, offset) {
                } else {
 
                        if (!page_offset) {
-                               var feedr = $('FEEDR-' + feed);
+                               var feedr;
+
+                               if (is_cat) {
+                                       feedr = $('FCAP-' + feed);
+                               } else {
+                                       feedr = $('FEEDR-' + feed);
+                               }
 
                                if (feedr) {
                                        var ll = document.createElement('img');
index 7a614f783bc7c5d475a4490c9e168ef4a8ce6040..2655774d091e82e39a1cbc3dab64ce0ac0a6791b 100644 (file)
@@ -119,7 +119,9 @@ function headlines_callback2(transport, feed_cur_page) {
                        if (feedr && !feedr.className.match("Selected")) {      
                                feedr.className = feedr.className + "Selected";
                        } 
-                       if (feedr && ll) feedr.removeChild(ll);
+
+                       var fcap = $("FCAP-" + feed_id);
+                       if (fcap && ll) fcap.removeChild(ll);
 
                }