|
|
|
@ -376,6 +376,10 @@ define([
|
|
|
|
|
paths.forEach(function (p, i) {
|
|
|
|
|
var path = p.path;
|
|
|
|
|
var $element = p.element;
|
|
|
|
|
if (path.length === 1) {
|
|
|
|
|
hide.push($menu.find('a.rename'));
|
|
|
|
|
hide.push($menu.find('a.delete'));
|
|
|
|
|
}
|
|
|
|
|
if (!APP.editable) {
|
|
|
|
|
hide.push($menu.find('a.editable'));
|
|
|
|
|
}
|
|
|
|
@ -1709,6 +1713,7 @@ define([
|
|
|
|
|
(isRootOpened ? $folderOpenedIcon : $folderIcon);
|
|
|
|
|
var $rootElement = createTreeElement(ROOT_NAME, $rootIcon.clone(), [ROOT], false, true, false, isRootOpened);
|
|
|
|
|
$rootElement.addClass('root');
|
|
|
|
|
$rootElement.find('>.element-row').contextmenu(openDirectoryContextMenu);
|
|
|
|
|
var $root = $('<ul>').append($rootElement).appendTo($container);
|
|
|
|
|
$container = $rootElement;
|
|
|
|
|
} else if (filesOp.isFolderEmpty(root)) { return; }
|
|
|
|
|