]> git.wh0rd.org - tt-rss.git/blobdiff - js/PrefFeedTree.js
subscribe dialog: do not report errors via alert()
[tt-rss.git] / js / PrefFeedTree.js
index c3a089d008ce4b81cd8827e70e91ff720226152d..3cf8257bee216f6c03f437759873962a0bd05d0e 100644 (file)
@@ -23,8 +23,12 @@ require(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], functi
                _createTreeNode: function(args) {
                        var tnode = this.inherited(arguments);
 
-                       if (args.item.icon)
-                               tnode.iconNode.src = args.item.icon[0];
+                       if (args.item.icon) {
+                               var icon = dojo.doc.createElement('img');
+                               icon.src = args.item.icon[0];
+                               icon.className = 'tinyFeedIcon';
+                               domConstruct.place(icon, tnode.iconNode, 'only');
+                       }
 
                        var param = this.model.store.getValue(args.item, 'param');