diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2023-11-09 11:24:27 +0100 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2023-11-09 11:26:10 +0100 |
commit | 89fb419c731f343345257b431f7e037dd6c981e9 (patch) | |
tree | 0c0aea26808d829e04bf152ecb778895d5a6a5c1 /apps/files/js | |
parent | 8b6750ceac4593e81fe07fb6c22eb1bc8ea2a943 (diff) | |
download | nextcloud-server-89fb419c731f343345257b431f7e037dd6c981e9.tar.gz nextcloud-server-89fb419c731f343345257b431f7e037dd6c981e9.zip |
fix(files): prevent redirect on heading column sort
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/filelist.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index e3fe7608299..95b650417ec 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -1228,6 +1228,10 @@ if (this.$table.hasClass('multiselect')) { return; } + + // Ensure the url does not change + e.preventDefault(); + var $target = $(e.target); var sort; if (!$target.is('a')) { |