mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 17:05:56 +00:00
lib: Upgrade Dojo and Dijit from 1.8.3 to 1.12.1
The itemNode and expandoNode elements have changed from img to span (https://bugs.dojotoolkit.org/ticket/16699), so we now put our tree icons inside them rather than replacing them. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user