summaryrefslogtreecommitdiff
path: root/js/PrefFeedTree.js
diff options
context:
space:
mode:
authorwn_ <[email protected]>2017-05-27 12:25:59 -0500
committerwn_ <[email protected]>2017-05-27 12:29:00 -0500
commitb3e3cb06d9980eac5f8ebf21c6b7f14c1f3b15f2 (patch)
tree3a0ddf52e2fbe020eb436f75ba55a72f2efe7652 /js/PrefFeedTree.js
parente50a64791687c27ba6a76df84a0e3b32dfd77936 (diff)
Show a blank icon in PrefFeedTree if there is no favicon for a feed.
Duplicates behavior of FeedTree. Prevents a broken request to 'false' if a feed doesn't have a favicon.
Diffstat (limited to 'js/PrefFeedTree.js')
-rw-r--r--js/PrefFeedTree.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/js/PrefFeedTree.js b/js/PrefFeedTree.js
index 3cf8257be..0079f0b1b 100644
--- a/js/PrefFeedTree.js
+++ b/js/PrefFeedTree.js
@@ -23,12 +23,14 @@ require(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], functi
_createTreeNode: function(args) {
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.className = 'tinyFeedIcon';
- domConstruct.place(icon, tnode.iconNode, 'only');
+ } else {
+ icon.src = 'images/blank_icon.gif';
}
+ icon.className = 'tinyFeedIcon';
+ domConstruct.place(icon, tnode.iconNode, 'only');
var param = this.model.store.getValue(args.item, 'param');