aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-09-03 07:52:34 +0200
committerGitHub <noreply@github.com>2019-09-03 07:52:34 +0200
commit6093acd4f00914da683d29c135f686fd3a97dd15 (patch)
treefea042aec8879cf5d74fb158284d4a14ac7f88d5 /apps/files/js
parent618873457937323bee425b7670ecc17553deda47 (diff)
parentac2c1ddd4e6c3806133a4dbe40e146da79981460 (diff)
downloadnextcloud-server-6093acd4f00914da683d29c135f686fd3a97dd15.tar.gz
nextcloud-server-6093acd4f00914da683d29c135f686fd3a97dd15.zip
Merge pull request #16969 from nextcloud/bugfix/14350/thumbnail_should_open_thefile_not_sidebar
When you click on thumbnail of a file, it should open the file not the sidebar
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/filelist.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index dc875d40c12..7bc91e6d0e2 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -828,7 +828,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) {