From: Andrew Dolgov Date: Mon, 12 Oct 2009 10:32:18 +0000 (+0400) Subject: feedlist: check for progressbar existence before creating one X-Git-Tag: 1.3.4~9 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=732a6197b4c33ef2797da0f245b09c643dc4cc67;p=tt-rss.git feedlist: check for progressbar existence before creating one --- diff --git a/feedlist.js b/feedlist.js index 860122bd..b1968a7a 100644 --- a/feedlist.js +++ b/feedlist.js @@ -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); + } } } }