mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-17 21:31:30 +00:00
digest: show loading indicator in feedlist
This commit is contained in:
@@ -210,6 +210,11 @@ function viewfeed(feed_id, offset, replace, no_effects) {
|
|||||||
|
|
||||||
console.log(query);
|
console.log(query);
|
||||||
|
|
||||||
|
var img = $("F-" + feed_id).getElementsByTagName("IMG")[0];
|
||||||
|
|
||||||
|
img.setAttribute("orig_src", img.src);
|
||||||
|
img.src = 'images/indicator_tiny.gif';
|
||||||
|
|
||||||
new Ajax.Request("backend.php", {
|
new Ajax.Request("backend.php", {
|
||||||
parameters: query,
|
parameters: query,
|
||||||
onComplete: function(transport) {
|
onComplete: function(transport) {
|
||||||
@@ -217,6 +222,7 @@ function viewfeed(feed_id, offset, replace, no_effects) {
|
|||||||
parse_headlines(transport, replace, no_effects);
|
parse_headlines(transport, replace, no_effects);
|
||||||
set_selected_feed(feed_id);
|
set_selected_feed(feed_id);
|
||||||
_active_feed_offset = offset;
|
_active_feed_offset = offset;
|
||||||
|
img.src = img.getAttribute("orig_src");
|
||||||
} });
|
} });
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user