Skip to content

Commit

Permalink
Merge pull request #14886 from nextcloud/bugfix/13028/open-folder-sha…
Browse files Browse the repository at this point in the history
…re-list

Fix opening folders from different file lists
  • Loading branch information
ChristophWurst authored Mar 27, 2019
2 parents 181fce8 + 6b2a212 commit 839cdd9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/files/js/fileactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
});
Expand Down

0 comments on commit 839cdd9

Please sign in to comment.