Skip to content

Commit dc00ecc

Browse files
authored
Merge pull request #41636 from nextcloud/bugfix/noid/only-trigger-sidebar-oce
2 parents 93b8e66 + 26b982d commit dc00ecc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

apps/files/js/filelist.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@
410410

411411
if (options.scrollTo) {
412412
this.$fileList.one('updated', function() {
413-
self.scrollTo(options.scrollTo);
413+
self.scrollTo(options.scrollTo, !options.openFile);
414414
});
415415
}
416416

@@ -3351,11 +3351,14 @@
33513351
this.$el.find('.mask').remove();
33523352
this.$table.removeClass('hidden');
33533353
},
3354-
scrollTo:function(file) {
3354+
scrollTo:function(file, showDetails) {
3355+
if (showDetails === undefined) {
3356+
showDetails = true
3357+
}
33553358
if (!_.isArray(file)) {
33563359
file = [file];
33573360
}
3358-
if (file.length === 1) {
3361+
if (file.length === 1 && showDetails) {
33593362
_.defer(function() {
33603363
if (document.documentElement.clientWidth > 1024) {
33613364
this.showDetailsView(file[0]);

0 commit comments

Comments
 (0)