diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2018-07-20 21:12:40 +0200 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2018-07-24 18:58:35 +0200 |
commit | a2ad1b9aa920ce3c07c2a2d1cfb32832a59775b3 (patch) | |
tree | 1d092b4441d5682d00a7a7e83b5c2385d344c0a8 /apps/files/js | |
parent | 3e6ac57abe40075133c43fe36e7124920309e087 (diff) | |
download | nextcloud-server-a2ad1b9aa920ce3c07c2a2d1cfb32832a59775b3.tar.gz nextcloud-server-a2ad1b9aa920ce3c07c2a2d1cfb32832a59775b3.zip |
Fix ability to open file or folder via keyboard, fix #10008
Before, the file or folder was opened when clicking on the name span,
but not when clicking on the link that contains the name; clicking on
the link highlighted the file and opened the sidebar, just like clicking
on the file size or date. Now clicking on the link opens the file or
folder, so the unit tests that tested clicks on the link were changed to
test clicking on the file size instead.
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/filelist.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 18872568ab5..1f207a2f72c 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -678,7 +678,7 @@ this.updateSelectionSummary(); } else { // clicked directly on the name - if (!this._detailsView || $(event.target).is('.nametext') || $(event.target).closest('.nametext').length) { + if (!this._detailsView || $(event.target).is('.nametext, .name') || $(event.target).closest('.nametext').length) { var filename = $tr.attr('data-file'); var renaming = $tr.data('renaming'); if (!renaming) { |