|
|
@ -445,7 +445,7 @@ define([
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// Add to root
|
|
|
|
// Add to root
|
|
|
|
if (path && exp.isPathIn(newPath, [ROOT])) {
|
|
|
|
if (path && exp.isPathIn(newPath, [ROOT])) {
|
|
|
|
var parentEl = exp.find(newPath);
|
|
|
|
parentEl = exp.find(newPath);
|
|
|
|
if (parentEl) {
|
|
|
|
if (parentEl) {
|
|
|
|
var newName = exp.getAvailableName(parentEl, Hash.createChannelId());
|
|
|
|
var newName = exp.getAvailableName(parentEl, Hash.createChannelId());
|
|
|
|
parentEl[newName] = id;
|
|
|
|
parentEl[newName] = id;
|
|
|
|