]> git.wh0rd.org Git - tt-rss.git/commitdiff
feedlist: tweak the loading progressbar display
authorAndrew Dolgov <fox@bah.org.ru>
Wed, 7 Oct 2009 19:16:21 +0000 (23:16 +0400)
committerAndrew Dolgov <fox@bah.org.ru>
Wed, 7 Oct 2009 19:16:21 +0000 (23:16 +0400)
feedlist.js
viewfeed.js

index 904a91ff5f76b817b756dd54b0257230e37e816a..860122bd0244fe8a9c2c9fae86042633197e8431 100644 (file)
@@ -324,13 +324,26 @@ function viewfeed(feed, subop, is_cat, subop_param, skip_history, offset) {
                                }
 
                                if (feedr && !$('FLL-' + feed)) {
-                                       var ll = document.createElement('img');
 
-                                       ll.src = 'images/indicator_tiny.gif';
-                                       ll.className = 'hlLoading';
-                                       ll.id = 'FLL-' + feed;
+                                       var img = $('FIMG-' + feed);
 
-                                       feedr.appendChild(ll);
+                                       if (!is_cat && img) {
+
+                                               img.alt = img.src;
+                                               img.src = 'images/indicator_white.gif';
+
+                                       } else {
+
+                                               var ll = document.createElement('img');
+
+                                               ll.src = 'images/indicator_tiny.gif';
+                                               ll.className = 'hlLoading';
+                                               ll.id = 'FLL-' + feed;
+       
+                                               feedr.appendChild(ll);
+
+
+                                       }
                                }
                        }
 
index 2655774d091e82e39a1cbc3dab64ce0ac0a6791b..fb94709508cdf1970b17167adbd1b99850ef18d5 100644 (file)
@@ -125,6 +125,13 @@ function headlines_callback2(transport, feed_cur_page) {
 
                }
 
+               var img = $('FIMG-' + feed_id);
+
+               if (img && !is_cat) {
+                       img.src = img.alt;
+                       img.alt = '';
+               }
+
                var f = $("headlines-frame");
                try {
                        if (feed_cur_page == 0) {