Fix dropping files in non-ROOT categories in the drive
This commit is contained in:
parent
6e6ba73eca
commit
f103a0fb08
@ -1681,6 +1681,7 @@ define([
|
|||||||
&& $target.parents('#cp-app-drive-content')) {
|
&& $target.parents('#cp-app-drive-content')) {
|
||||||
newPath = currentPath;
|
newPath = currentPath;
|
||||||
}
|
}
|
||||||
|
if (newPath[0] !== ROOT) { newPath = [ROOT]; }
|
||||||
return newPath;
|
return newPath;
|
||||||
};
|
};
|
||||||
var onFileDrop = APP.onFileDrop = function (file, e) {
|
var onFileDrop = APP.onFileDrop = function (file, e) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user