From 1d0971b72ee69b90deb3157e97282aa16484b420 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 84d1f4b91e7..c3bf243f429 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -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) { -- 2.39.5