From c0e5975ab64285613563a7ef34ca7c8717c0f0fe Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Fri, 11 Apr 2014 16:44:53 +0200 Subject: Set default sort of trashbin to timestamp descending --- apps/files/js/filelist.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'apps/files/js') 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); } }; -- cgit v1.2.3