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;
return tnode;
return (item.unread == 0) ? "dijitTreeLabel" : "dijitTreeLabel Unread";
},
getRowClass: function (item, opened) {
- return (!item.error || item.error == '') ? "dijitTreeRow" :
+ var rc = (!item.error || item.error == '') ? "dijitTreeRow" :
"dijitTreeRow Error";
+
+ if (item.unread > 0) rc += " Unread";
+
+ return rc;
},
getLabel: function(item) {
var name = String(item.name);
name = name.replace(/</g, "<");
name = name.replace(/>/g, ">");
- var label;
+ /* var label;
if (item.unread > 0) {
label = name + " (" + item.unread + ")";
} else {
label = name;
- }
+ } */
- return label;
+ return name;
},
expandParentNodes: function(feed, is_cat, list) {
try {
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;
+}