]> git.wh0rd.org Git - tt-rss.git/commitdiff
feedlist: check for progressbar existence before creating one
authorAndrew Dolgov <fox@bah.org.ru>
Mon, 12 Oct 2009 10:32:18 +0000 (14:32 +0400)
committerAndrew Dolgov <fox@bah.org.ru>
Mon, 12 Oct 2009 10:32:18 +0000 (14:32 +0400)
feedlist.js

index 860122bd0244fe8a9c2c9fae86042633197e8431..b1968a7abfe2e0429a34b3a5e537635c508805a8 100644 (file)
@@ -329,20 +329,22 @@ function viewfeed(feed, subop, is_cat, subop_param, skip_history, offset) {
 
                                        if (!is_cat && img) {
 
-                                               img.alt = img.src;
-                                               img.src = 'images/indicator_white.gif';
+                                               if (!img.src.match("indicator_white")) {
+                                                       img.alt = img.src;
+                                                       img.src = 'images/indicator_white.gif';
+                                               }
 
                                        } else {
 
-                                               var ll = document.createElement('img');
+                                               if (!$('FLL-' + feed)) {
+                                                       var ll = document.createElement('img');
 
-                                               ll.src = 'images/indicator_tiny.gif';
-                                               ll.className = 'hlLoading';
-                                               ll.id = 'FLL-' + feed;
+                                                       ll.src = 'images/indicator_tiny.gif';
+                                                       ll.className = 'hlLoading';
+                                                       ll.id = 'FLL-' + feed;
        
-                                               feedr.appendChild(ll);
-
-
+                                                       feedr.appendChild(ll);
+                                               }
                                        }
                                }
                        }