mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-20 20:21:29 +00:00
add little loading indicator for feed categories
This commit is contained in:
@@ -162,6 +162,13 @@ dojo.declare("fox.FeedTree", dijit.Tree, {
|
|||||||
tnode._menu = menu;
|
tnode._menu = menu;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (id.match("CAT:")) {
|
||||||
|
loading = dojo.doc.createElement('img');
|
||||||
|
loading.className = 'loadingNode';
|
||||||
|
dojo.place(loading, tnode.labelNode, 'after');
|
||||||
|
tnode.loadingNode = loading;
|
||||||
|
}
|
||||||
|
|
||||||
if (id.match("CAT:") && bare_id == -1) {
|
if (id.match("CAT:") && bare_id == -1) {
|
||||||
var menu = new dijit.Menu();
|
var menu = new dijit.Menu();
|
||||||
menu.row_id = bare_id;
|
menu.row_id = bare_id;
|
||||||
@@ -243,9 +250,16 @@ dojo.declare("fox.FeedTree", dijit.Tree, {
|
|||||||
|
|
||||||
if (treeNode) {
|
if (treeNode) {
|
||||||
treeNode = treeNode[0];
|
treeNode = treeNode[0];
|
||||||
|
if (is_cat) {
|
||||||
|
if (treeNode.loadingNode) {
|
||||||
|
treeNode.loadingNode.src = src;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
treeNode.expandoNode.src = src;
|
treeNode.expandoNode.src = src;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -125,11 +125,9 @@ function viewfeed(feed, method, is_cat, offset, background, infscroll_req) {
|
|||||||
|
|
||||||
Form.enable("main_toolbar_form");
|
Form.enable("main_toolbar_form");
|
||||||
|
|
||||||
if (!offset)
|
if (!offset) {
|
||||||
if (!is_cat) {
|
if (!setFeedExpandoIcon(feed, is_cat,
|
||||||
if (!setFeedExpandoIcon(feed, is_cat, 'images/indicator_white.gif'))
|
(is_cat) ? 'images/indicator_tiny.gif' : 'images/indicator_white.gif'))
|
||||||
notify_progress("Loading, please wait...", true);
|
|
||||||
} else {
|
|
||||||
notify_progress("Loading, please wait...", true);
|
notify_progress("Loading, please wait...", true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user