diff options
author | Florian Schunk <florian.schunk@rwth-aachen.de> | 2018-12-23 14:27:08 +0100 |
---|---|---|
committer | Florian Schunk <florian.schunk@rwth-aachen.de> | 2019-01-16 22:54:16 +0100 |
commit | ecb936495f095610298c952c7c555ebb6daf1174 (patch) | |
tree | 1bfd19d0d73921b31159bb84f458ecdf1fbc4c8e /apps | |
parent | 37270fc525b2cbe0b715bac707705eef2daffb03 (diff) | |
download | nextcloud-server-ecb936495f095610298c952c7c555ebb6daf1174.tar.gz nextcloud-server-ecb936495f095610298c952c7c555ebb6daf1174.zip |
also remember folder for multiselect actions
Signed-off-by: Florian Schunk <florian.schunk@rwth-aachen.de>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/js/filelist.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index bcecdb697fe..7f0d1ea1a94 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -918,6 +918,10 @@ }; var actions = this.isSelectedMovable() ? OC.dialogs.FILEPICKER_TYPE_COPY_MOVE : OC.dialogs.FILEPICKER_TYPE_COPY; + var dialogDir = self.getCurrentDirectory(); + if (self.dirInfo.dirLastCopiedTo != undefined) { + dialogDir = self.dirInfo.dirLastCopiedTo; + } OC.dialogs.filepicker(t('files', 'Choose target folder'), function(targetPath, type) { self.fileMultiSelectMenu.toggleLoading('copyMove', true); if (type === OC.dialogs.FILEPICKER_TYPE_COPY) { @@ -926,7 +930,8 @@ if (type === OC.dialogs.FILEPICKER_TYPE_MOVE) { self.move(files, targetPath, disableLoadingState); } - }, false, "httpd/unix-directory", true, actions); + self.dirInfo.dirLastCopiedTo = targetPath; + }, false, "httpd/unix-directory", true, actions, dialogDir); event.preventDefault(); }, |