summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorGreta Doci <gretadoci@gmail.com>2019-09-02 15:11:52 +0200
committerGreta Doci <gretadoci@gmail.com>2019-09-02 15:11:52 +0200
commitac2c1ddd4e6c3806133a4dbe40e146da79981460 (patch)
tree80a12aaf0f96c074f4bd96b87dbe317cb758378e /apps/files
parent650e4f9f4c44cf55c28d0e6f7be988056cc6897c (diff)
downloadnextcloud-server-ac2c1ddd4e6c3806133a4dbe40e146da79981460.tar.gz
nextcloud-server-ac2c1ddd4e6c3806133a4dbe40e146da79981460.zip
Change filelist _onClickFile function so thumbnail to open the file instead of the sidebar
Signed-off-by: Greta Doci <gretadoci@gmail.com>
Diffstat (limited to 'apps/files')
-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 7a6665b0807..8d93a457e90 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -823,7 +823,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) {