summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2023-11-09 11:24:27 +0100
committerJohn Molakvoæ <skjnldsv@protonmail.com>2023-11-09 11:26:10 +0100
commit89fb419c731f343345257b431f7e037dd6c981e9 (patch)
tree0c0aea26808d829e04bf152ecb778895d5a6a5c1 /apps/files/js
parent8b6750ceac4593e81fe07fb6c22eb1bc8ea2a943 (diff)
downloadnextcloud-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.js4
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')) {