diff options
author | Florian Schunk <florian.schunk@rwth-aachen.de> | 2018-11-09 15:38:59 +0100 |
---|---|---|
committer | Florian Schunk <florian.schunk@rwth-aachen.de> | 2019-01-16 22:54:16 +0100 |
commit | 37270fc525b2cbe0b715bac707705eef2daffb03 (patch) | |
tree | 8f453e85fc2ef17666eabad46dcd51215a677354 /apps/files/js/fileactions.js | |
parent | 528964e0b73fc3ddbf14737a342823d7b6fd9816 (diff) | |
download | nextcloud-server-37270fc525b2cbe0b715bac707705eef2daffb03.tar.gz nextcloud-server-37270fc525b2cbe0b715bac707705eef2daffb03.zip |
remember last copied to directory
Signed-off-by: Florian Schunk <florian.schunk@rwth-aachen.de>
Diffstat (limited to 'apps/files/js/fileactions.js')
-rw-r--r-- | apps/files/js/fileactions.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js index 7ad37f3c559..05efa1f36e9 100644 --- a/apps/files/js/fileactions.js +++ b/apps/files/js/fileactions.js @@ -648,6 +648,10 @@ if (permissions & OC.PERMISSION_UPDATE) { actions = OC.dialogs.FILEPICKER_TYPE_COPY_MOVE; } + var dialogDir = context.dir; + if (context.fileList.dirInfo.dirLastCopiedTo != undefined) { + dialogDir = context.fileList.dirInfo.dirLastCopiedTo; + } OC.dialogs.filepicker(t('files', 'Choose target folder'), function(targetPath, type) { if (type === OC.dialogs.FILEPICKER_TYPE_COPY) { context.fileList.copy(filename, targetPath, false, context.dir); @@ -655,7 +659,8 @@ if (type === OC.dialogs.FILEPICKER_TYPE_MOVE) { context.fileList.move(filename, targetPath, false, context.dir); } - }, false, "httpd/unix-directory", true, actions, context.dir); + context.fileList.dirInfo.dirLastCopiedTo = targetPath; + }, false, "httpd/unix-directory", true, actions, dialogDir); } }); |