|
|
@ -1798,6 +1798,11 @@ define([
|
|
|
|
if (!manager.isFile(element)) { return; }
|
|
|
|
if (!manager.isFile(element)) { return; }
|
|
|
|
|
|
|
|
|
|
|
|
var data = manager.getFileData(element);
|
|
|
|
var data = manager.getFileData(element);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!Object.keys(data).length) {
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var href = data.href || data.roHref;
|
|
|
|
var href = data.href || data.roHref;
|
|
|
|
if (!data) { return void logError("No data for the file", element); }
|
|
|
|
if (!data) { return void logError("No data for the file", element); }
|
|
|
|
|
|
|
|
|
|
|
@ -1958,10 +1963,14 @@ define([
|
|
|
|
if (isTrash) { return; }
|
|
|
|
if (isTrash) { return; }
|
|
|
|
openFile(root[key]);
|
|
|
|
openFile(root[key]);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
var invalid;
|
|
|
|
if (isFolder) {
|
|
|
|
if (isFolder) {
|
|
|
|
addFolderData(element, key, $element);
|
|
|
|
invalid = addFolderData(element, key, $element);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
addFileData(element, $element);
|
|
|
|
invalid = addFileData(element, $element);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (invalid) {
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$element.addClass(liClass);
|
|
|
|
$element.addClass(liClass);
|
|
|
|
var droppable = !isTrash && !APP.$content.data('readOnlyFolder');
|
|
|
|
var droppable = !isTrash && !APP.$content.data('readOnlyFolder');
|
|
|
|