Merge pull request #14886 from nextcloud/bugfix/13028/open-folder-share-list
Fix opening folders from different file lists
This commit is contained in:
commit
839cdd9b8c
1 changed files with 6 additions and 1 deletions
|
@ -671,7 +671,12 @@
|
|||
icon: '',
|
||||
actionHandler: 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));
|
||||
}
|
||||
},
|
||||
displayName: t('files', 'Open')
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue