summaryrefslogtreecommitdiffstats
path: root/apps/files/js/filelist.js
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2016-07-22 14:19:04 +0200
committerRobin Appelman <robin@icewind.nl>2016-07-22 15:20:55 +0200
commit2139a031e706e256eee1e4f8cfc6cea06cf8cb9f (patch)
tree8dc6147de1b159039cf8c67b57c489c6a1bc2903 /apps/files/js/filelist.js
parent81e103074ea6ce9e7035734bc527ab582dbca89f (diff)
downloadnextcloud-server-2139a031e706e256eee1e4f8cfc6cea06cf8cb9f.tar.gz
nextcloud-server-2139a031e706e256eee1e4f8cfc6cea06cf8cb9f.zip
block user sorting in recent files
Diffstat (limited to 'apps/files/js/filelist.js')
-rw-r--r--apps/files/js/filelist.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index f0b16a57886..24cccb3a5c8 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -175,6 +175,11 @@
_clientSideSort: true,
/**
+ * Whether or not users can change the sort attribute or direction
+ */
+ _allowSorting: true,
+
+ /**
* Current directory
* @type String
*/
@@ -718,7 +723,7 @@
$target = $target.closest('a');
}
sort = $target.attr('data-sort');
- if (sort) {
+ if (sort && this._allowSorting) {
if (this._sort === sort) {
this.setSort(sort, (this._sortDirection === 'desc')?'asc':'desc', true, true);
}