diff options
author | Julius Härtl <jus@bitgrid.net> | 2023-11-25 08:58:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-25 08:58:02 +0100 |
commit | dc00ecc86a809edae090a0a5859bed473169581e (patch) | |
tree | cff06ec458fb9e9a75a3e397f79e10f42639b128 | |
parent | 93b8e662ad5d02b70718a69c6208312a7466778a (diff) | |
parent | 26b982daf3798c5c45e74b80e066075713379cef (diff) | |
download | nextcloud-server-dc00ecc86a809edae090a0a5859bed473169581e.tar.gz nextcloud-server-dc00ecc86a809edae090a0a5859bed473169581e.zip |
Merge pull request #41636 from nextcloud/bugfix/noid/only-trigger-sidebar-oce
-rw-r--r-- | apps/files/js/filelist.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 95b650417ec..1924cd9538e 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -410,7 +410,7 @@ if (options.scrollTo) { this.$fileList.one('updated', function() { - self.scrollTo(options.scrollTo); + self.scrollTo(options.scrollTo, !options.openFile); }); } @@ -3351,11 +3351,14 @@ this.$el.find('.mask').remove(); this.$table.removeClass('hidden'); }, - scrollTo:function(file) { + scrollTo:function(file, showDetails) { + if (showDetails === undefined) { + showDetails = true + } if (!_.isArray(file)) { file = [file]; } - if (file.length === 1) { + if (file.length === 1 && showDetails) { _.defer(function() { if (document.documentElement.clientWidth > 1024) { this.showDetailsView(file[0]); |