Set default sort of trashbin to timestamp descending
This commit is contained in:
parent
688f6162da
commit
c0e5975ab6
2 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
|
|
@ -80,6 +80,7 @@
|
|||
FileList.initialize = function() {
|
||||
var result = oldInit.apply(this, arguments);
|
||||
$('.undelete').click('click', FileList._onClickRestoreSelected);
|
||||
this.setSort('mtime', 'desc');
|
||||
return result;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue