summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-04-11 16:44:53 +0200
committerVincent Petry <pvince81@owncloud.com>2014-04-28 17:42:04 +0200
commitc0e5975ab64285613563a7ef34ca7c8717c0f0fe (patch)
tree9392cef703b25a114ac8c8aa7083abc854c313ad /apps
parent688f6162daeec724c537f9c283092f45b29b05f2 (diff)
downloadnextcloud-server-c0e5975ab64285613563a7ef34ca7c8717c0f0fe.tar.gz
nextcloud-server-c0e5975ab64285613563a7ef34ca7c8717c0f0fe.zip
Set default sort of trashbin to timestamp descending
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/filelist.js5
-rw-r--r--apps/files_trashbin/js/filelist.js1
2 files changed, 2 insertions, 4 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 1c24ca45996..04c5a8ff282 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -80,9 +80,7 @@ window.FileList = {
this.fileSummary = this._createSummary();
- this._sort = 'name';
- this._sortDirection = 'asc';
- this._sortComparator = this.Comparators.name;
+ this.setSort('name', 'asc');
this.breadcrumb = new BreadCrumb({
onClick: this._onClickBreadCrumb,
@@ -1583,7 +1581,6 @@ $(document).ready(function() {
targetDir = parseCurrentDirFromUrl();
}
if (targetDir) {
- FileList.setSort('name', 'asc');
FileList.changeDirectory(targetDir, false);
}
};
diff --git a/apps/files_trashbin/js/filelist.js b/apps/files_trashbin/js/filelist.js
index 3bb3a92b60d..00fc7e16b88 100644
--- a/apps/files_trashbin/js/filelist.js
+++ b/apps/files_trashbin/js/filelist.js
@@ -80,6 +80,7 @@
FileList.initialize = function() {
var result = oldInit.apply(this, arguments);
$('.undelete').click('click', FileList._onClickRestoreSelected);
+ this.setSort('mtime', 'desc');
return result;
};