Set default sort of trashbin to timestamp descending

remotes/origin/ldap_group_count
Vincent Petry 13 years ago
parent 688f6162da
commit c0e5975ab6
  1. 5
      apps/files/js/filelist.js
  2. 1
      apps/files_trashbin/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);
}
};

@ -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…
Cancel
Save