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