We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 93b8e66 + 26b982d commit dc00eccCopy full SHA for dc00ecc
apps/files/js/filelist.js
@@ -410,7 +410,7 @@
410
411
if (options.scrollTo) {
412
this.$fileList.one('updated', function() {
413
- self.scrollTo(options.scrollTo);
+ self.scrollTo(options.scrollTo, !options.openFile);
414
});
415
}
416
@@ -3351,11 +3351,14 @@
3351
this.$el.find('.mask').remove();
3352
this.$table.removeClass('hidden');
3353
},
3354
- scrollTo:function(file) {
+ scrollTo:function(file, showDetails) {
3355
+ if (showDetails === undefined) {
3356
+ showDetails = true
3357
+ }
3358
if (!_.isArray(file)) {
3359
file = [file];
3360
- if (file.length === 1) {
3361
+ if (file.length === 1 && showDetails) {
3362
_.defer(function() {
3363
if (document.documentElement.clientWidth > 1024) {
3364
this.showDetailsView(file[0]);
0 commit comments