initial
This commit is contained in:
parent
c3b06333b6
commit
66af65f14b
|
@ -184,6 +184,11 @@ dojo.declare("fox.FeedTree", dijit.Tree, {
|
||||||
tnode._menu = menu;
|
tnode._menu = menu;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ctr = dojo.doc.createElement('span');
|
||||||
|
ctr.className = 'counterNode';
|
||||||
|
ctr.innerHTML = '0';
|
||||||
|
dojo.place(ctr, tnode.labelNode, 'after');
|
||||||
|
tnode.counterNode = ctr;
|
||||||
|
|
||||||
//tnode.labelNode.innerHTML = args.label;
|
//tnode.labelNode.innerHTML = args.label;
|
||||||
return tnode;
|
return tnode;
|
||||||
|
@ -195,8 +200,12 @@ dojo.declare("fox.FeedTree", dijit.Tree, {
|
||||||
return (item.unread == 0) ? "dijitTreeLabel" : "dijitTreeLabel Unread";
|
return (item.unread == 0) ? "dijitTreeLabel" : "dijitTreeLabel Unread";
|
||||||
},
|
},
|
||||||
getRowClass: function (item, opened) {
|
getRowClass: function (item, opened) {
|
||||||
return (!item.error || item.error == '') ? "dijitTreeRow" :
|
var rc = (!item.error || item.error == '') ? "dijitTreeRow" :
|
||||||
"dijitTreeRow Error";
|
"dijitTreeRow Error";
|
||||||
|
|
||||||
|
if (item.unread > 0) rc += " Unread";
|
||||||
|
|
||||||
|
return rc;
|
||||||
},
|
},
|
||||||
getLabel: function(item) {
|
getLabel: function(item) {
|
||||||
var name = String(item.name);
|
var name = String(item.name);
|
||||||
|
@ -208,15 +217,15 @@ dojo.declare("fox.FeedTree", dijit.Tree, {
|
||||||
name = name.replace(/</g, "<");
|
name = name.replace(/</g, "<");
|
||||||
name = name.replace(/>/g, ">");
|
name = name.replace(/>/g, ">");
|
||||||
|
|
||||||
var label;
|
/* var label;
|
||||||
|
|
||||||
if (item.unread > 0) {
|
if (item.unread > 0) {
|
||||||
label = name + " (" + item.unread + ")";
|
label = name + " (" + item.unread + ")";
|
||||||
} else {
|
} else {
|
||||||
label = name;
|
label = name;
|
||||||
}
|
} */
|
||||||
|
|
||||||
return label;
|
return name;
|
||||||
},
|
},
|
||||||
expandParentNodes: function(feed, is_cat, list) {
|
expandParentNodes: function(feed, is_cat, list) {
|
||||||
try {
|
try {
|
||||||
|
|
19
tt-rss.css
19
tt-rss.css
|
@ -1012,3 +1012,22 @@ div.hl.active a.title {
|
||||||
color : #4684ff;
|
color : #4684ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#feedTree .dijitTreeRow span.counterNode {
|
||||||
|
display : none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#feedTree .dijitTreeRow.Unread span.counterNode {
|
||||||
|
display : inline;
|
||||||
|
}
|
||||||
|
|
||||||
|
#feedTree span.counterNode:before {
|
||||||
|
content: "(";
|
||||||
|
}
|
||||||
|
|
||||||
|
#feedTree span.counterNode:after {
|
||||||
|
content: ")";
|
||||||
|
}
|
||||||
|
|
||||||
|
#feedTree span.counterNode {
|
||||||
|
font-weight : bold;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue