Fix the trash button in toolbar not always working

This commit is contained in:
yflory committed 2017-02-14 10:56:38 +01:00
1 parent aae3fba284
commit 92050eb04f
3 files changed
+6 -1

No files matched your search

+2
View File
@@ -1810,6 +1810,8 @@ define([
return false;
}).on('remove', [], function (o, p) {
var path = arguments[1];
if (path[0] !== 'drive') { return false; }
path = path.slice(1);
var cPath = currentPath.slice();
if ((filesOp.isPathInUnsorted(cPath) && filesOp.isPathInUnsorted(path)) ||
(filesOp.isPathInTemplate(cPath) && filesOp.isPathInTemplate(path)) ||