From ac2c1ddd4e6c3806133a4dbe40e146da79981460 Mon Sep 17 00:00:00 2001 From: Greta Doci Date: Mon, 2 Sep 2019 15:11:52 +0200 Subject: [PATCH] Change filelist _onClickFile function so thumbnail to open the file instead of the sidebar Signed-off-by: Greta Doci --- apps/files/js/filelist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 7a6665b080..8d93a457e9 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) {