digest: only try to show feed loading indicator when feed is actually present on screen
This commit is contained in:
parent
e638cd0201
commit
b8a1b2ae94
|
@ -253,12 +253,14 @@ function viewfeed(feed_id, offset, replace, no_effects, no_indicator, callback)
|
||||||
|
|
||||||
console.log(query);
|
console.log(query);
|
||||||
|
|
||||||
|
if ($("F-" + feed_id)) {
|
||||||
var img = $("F-" + feed_id).getElementsByTagName("IMG")[0];
|
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", {
|
||||||
parameters: query,
|
parameters: query,
|
||||||
|
|
Loading…
Reference in New Issue