1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 09:35:55 +00:00

add little loading indicator for feed categories

This commit is contained in:
Andrew Dolgov
2013-03-19 20:29:20 +04:00
parent ca5917cd39
commit 6cf60c881f
2 changed files with 20 additions and 8 deletions

View File

@@ -162,6 +162,13 @@ dojo.declare("fox.FeedTree", dijit.Tree, {
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) {
var menu = new dijit.Menu();
menu.row_id = bare_id;
@@ -243,8 +250,15 @@ dojo.declare("fox.FeedTree", dijit.Tree, {
if (treeNode) {
treeNode = treeNode[0];
treeNode.expandoNode.src = src;
return true;
if (is_cat) {
if (treeNode.loadingNode) {
treeNode.loadingNode.src = src;
return true;
}
} else {
treeNode.expandoNode.src = src;
return true;
}
}
return false;