mirror of
https://github.com/nextcloud/server.git
synced 2026-05-25 02:34:12 -04:00
Fix opening folders from different file lists
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
5b802c0a26
commit
c1bad831cd
1 changed files with 6 additions and 1 deletions
|
|
@ -675,7 +675,12 @@
|
|||
|
||||
this.register('dir', 'Open', OC.PERMISSION_READ, '', function (filename, context) {
|
||||
var dir = context.$file.attr('data-path') || context.fileList.getCurrentDirectory();
|
||||
context.fileList.changeDirectory(OC.joinPaths(dir, filename), true, false, parseInt(context.$file.attr('data-id'), 10));
|
||||
if (OCA.Files.App.getActiveView() !== 'files') {
|
||||
OCA.Files.App.setActiveView('files');
|
||||
OCA.Files.App.fileList.changeDirectory(OC.joinPaths(dir, filename), true, true);
|
||||
} else {
|
||||
context.fileList.changeDirectory(OC.joinPaths(dir, filename), true, false, parseInt(context.$file.attr('data-id'), 10));
|
||||
}
|
||||
});
|
||||
|
||||
this.registerAction({
|
||||
|
|
|
|||
Loading…
Reference in a new issue