From e51f678bb914370574207a55c6c8a92bb1246bbf Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 14 Jun 2017 12:50:44 +0200 Subject: [PATCH] Don't display the popup whne moving a file to the trash --- www/drive/main.js | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/www/drive/main.js b/www/drive/main.js index 1837f6700..0a460a703 100644 --- a/www/drive/main.js +++ b/www/drive/main.js @@ -965,23 +965,7 @@ define([ if (filesOp.isPathIn(newPath, [TRASH]) && paths.length && paths[0][0] === TRASH) { return; } - // "force" is currently unused but may be configurable by user - if (newPath[0] !== TRASH || force) { - andThen(); - return; - } - var msg = Messages._getKey('fm_removeSeveralDialog', [paths.length]); - if (paths.length === 1) { - var path = paths[0].slice(); - var el = filesOp.find(path); - var name = filesOp.isFile(el) ? getElementName(path) : path.pop(); - msg = Messages._getKey('fm_removeDialog', [name]); - } - Cryptpad.confirm(msg, function (res) { - $(ifrw).focus(); - if (!res) { return; } - andThen(); - }); + andThen(); }; // Drag & drop: // The data transferred is a stringified JSON containing the path of the dragged element