From: Andrew Dolgov Date: Wed, 7 Oct 2009 19:16:21 +0000 (+0400) Subject: feedlist: tweak the loading progressbar display X-Git-Tag: 1.3.4~21 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=105b61b771bbe80fb01ca64c070d0e83ae346858;p=tt-rss.git feedlist: tweak the loading progressbar display --- diff --git a/feedlist.js b/feedlist.js index 904a91ff..860122bd 100644 --- a/feedlist.js +++ b/feedlist.js @@ -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); + + + } } } diff --git a/viewfeed.js b/viewfeed.js index 2655774d..fb947095 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -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) {