mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-20 20:51:29 +00:00
digest: only try to show feed loading indicator when feed is actually present on screen
This commit is contained in:
10
digest.js
10
digest.js
@@ -253,11 +253,13 @@ function viewfeed(feed_id, offset, replace, no_effects, no_indicator, callback)
|
|||||||
|
|
||||||
console.log(query);
|
console.log(query);
|
||||||
|
|
||||||
var img = $("F-" + feed_id).getElementsByTagName("IMG")[0];
|
if ($("F-" + feed_id)) {
|
||||||
|
var img = $("F-" + feed_id).getElementsByTagName("IMG")[0];
|
||||||
|
|
||||||
if (img && !no_indicator) {
|
if (img && !no_indicator) {
|
||||||
img.setAttribute("orig_src", img.src);
|
img.setAttribute("orig_src", img.src);
|
||||||
img.src = 'images/indicator_tiny.gif';
|
img.src = 'images/indicator_tiny.gif';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
new Ajax.Request("backend.php", {
|
new Ajax.Request("backend.php", {
|
||||||
|
|||||||
Reference in New Issue
Block a user