summaryrefslogtreecommitdiffstats
path: root/apps/files/js/filelist.js
diff options
context:
space:
mode:
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 322dfcaa66e..fef371b8479 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -240,7 +240,7 @@
this.fileSummary = this._createSummary();
if (options.sorting) {
- this.setSort(options.sorting, 'asc');
+ this.setSort(options.sorting.mode, options.sorting.direction);
} else {
this.setSort('name', 'asc');
}
@@ -1401,6 +1401,11 @@
this.reload();
}
}
+
+ $.post(OC.generateUrl('/apps/files/api/v1/sorting'), {
+ mode: sort,
+ direction: direction
+ });
},
/**