Fix the trash button in toolbar not always working

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

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)) ||