]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use slient option to switch for regular file actions as well 15057/head
authorJulius Härtl <jus@bitgrid.net>
Thu, 11 Apr 2019 12:38:58 +0000 (14:38 +0200)
committerJulius Härtl <jus@bitgrid.net>
Thu, 11 Apr 2019 12:38:58 +0000 (14:38 +0200)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
apps/files/js/fileactions.js

index 03d530e357a2b65925bce3aabec21c843189665f..026b1044d3c23f41e4df40645abc2ebd4e20ca1c 100644 (file)
                                actionHandler: function (filename, context) {
                                        var dir = context.$file.attr('data-path') || context.fileList.getCurrentDirectory();
                                        if (OCA.Files.App && OCA.Files.App.getActiveView() !== 'files') {
-                                               OCA.Files.App.setActiveView('files');
+                                               OCA.Files.App.setActiveView('files', {silent: true});
                                                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));