Merge branch 'PrefFeedTree_no_favicon' into 'master'
Show a blank icon in PrefFeedTree if there is no favicon for a feed. See merge request !55
This commit is contained in:
commit
647d91fabf
|
@ -23,12 +23,14 @@ require(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], functi
|
||||||
_createTreeNode: function(args) {
|
_createTreeNode: function(args) {
|
||||||
var tnode = this.inherited(arguments);
|
var tnode = this.inherited(arguments);
|
||||||
|
|
||||||
if (args.item.icon) {
|
|
||||||
var icon = dojo.doc.createElement('img');
|
var icon = dojo.doc.createElement('img');
|
||||||
|
if (args.item.icon && args.item.icon[0]) {
|
||||||
icon.src = args.item.icon[0];
|
icon.src = args.item.icon[0];
|
||||||
|
} else {
|
||||||
|
icon.src = 'images/blank_icon.gif';
|
||||||
|
}
|
||||||
icon.className = 'tinyFeedIcon';
|
icon.className = 'tinyFeedIcon';
|
||||||
domConstruct.place(icon, tnode.iconNode, 'only');
|
domConstruct.place(icon, tnode.iconNode, 'only');
|
||||||
}
|
|
||||||
|
|
||||||
var param = this.model.store.getValue(args.item, 'param');
|
var param = this.model.store.getValue(args.item, 'param');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue