Merge pull request #17091 from nextcloud/backport/16969/stable16

[stable16] When you click on thumbnail of a file, it should open the file not the sidebar
This commit is contained in:
Roeland Jago Douma 2019-09-11 11:04:06 +02:00 committed by GitHub
commit 1b8ae61b7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -825,7 +825,7 @@
this.updateSelectionSummary();
} else {
// clicked directly on the name
if (!this._detailsView || $(event.target).is('.nametext, .name') || $(event.target).closest('.nametext').length) {
if (!this._detailsView || $(event.target).is('.nametext, .name, .thumbnail') || $(event.target).closest('.nametext').length) {
var filename = $tr.attr('data-file');
var renaming = $tr.data('renaming');
if (!renaming) {