feedlist: check for progressbar existence before creating one

This commit is contained in:
Andrew Dolgov 2009-10-12 14:32:18 +04:00
parent f4280bdd13
commit 732a6197b4
1 changed files with 11 additions and 9 deletions

View File

@ -329,11 +329,14 @@ function viewfeed(feed, subop, is_cat, subop_param, skip_history, offset) {
if (!is_cat && img) { if (!is_cat && img) {
if (!img.src.match("indicator_white")) {
img.alt = img.src; img.alt = img.src;
img.src = 'images/indicator_white.gif'; img.src = 'images/indicator_white.gif';
}
} else { } else {
if (!$('FLL-' + feed)) {
var ll = document.createElement('img'); var ll = document.createElement('img');
ll.src = 'images/indicator_tiny.gif'; ll.src = 'images/indicator_tiny.gif';
@ -341,8 +344,7 @@ function viewfeed(feed, subop, is_cat, subop_param, skip_history, offset) {
ll.id = 'FLL-' + feed; ll.id = 'FLL-' + feed;
feedr.appendChild(ll); feedr.appendChild(ll);
}
} }
} }
} }