Skip to content

Commit 0e45ede

Browse files
committed
also remember folder for multiselect actions
Signed-off-by: Florian Schunk <florian.schunk@rwth-aachen.de>
1 parent 3b0f338 commit 0e45ede

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

apps/files/js/filelist.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,6 +882,10 @@
882882
};
883883

884884
var actions = this.isSelectedMovable() ? OC.dialogs.FILEPICKER_TYPE_COPY_MOVE : OC.dialogs.FILEPICKER_TYPE_COPY;
885+
var dialogDir = self.getCurrentDirectory();
886+
if (self.dirInfo.dirLastCopiedTo != undefined) {
887+
dialogDir = self.dirInfo.dirLastCopiedTo;
888+
}
885889
OC.dialogs.filepicker(t('files', 'Choose target folder'), function(targetPath, type) {
886890
self.fileMultiSelectMenu.toggleLoading('copyMove', true);
887891
if (type === OC.dialogs.FILEPICKER_TYPE_COPY) {
@@ -890,7 +894,8 @@
890894
if (type === OC.dialogs.FILEPICKER_TYPE_MOVE) {
891895
self.move(files, targetPath, disableLoadingState);
892896
}
893-
}, false, "httpd/unix-directory", true, actions);
897+
self.dirInfo.dirLastCopiedTo = targetPath;
898+
}, false, "httpd/unix-directory", true, actions, dialogDir);
894899
event.preventDefault();
895900
},
896901

0 commit comments

Comments
 (0)