mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-14 14:15: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,6 +23,27 @@ function rhinoDojoConfig(config, baseUrl, rhinoArgs){
|
||||
var arg = (rhinoArgs[i] + "").split("=");
|
||||
if(arg[0] == "load"){
|
||||
deps.push(arg[1]);
|
||||
}else if(arg[0] == "mapPackage") {
|
||||
var parts = arg[1].split(":"),
|
||||
name = parts[0],
|
||||
location=parts[1],
|
||||
isPrexisting = false;
|
||||
|
||||
for (var j = 0; j < config.packages.length; j++) {
|
||||
var pkg = config.packages[j];
|
||||
if (pkg.name === name) {
|
||||
pkg.location = location;
|
||||
isPrexisting = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!isPrexisting) {
|
||||
config.packages.push({
|
||||
name: name,
|
||||
location: location
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user