[Pkg-owncloud-commits] [owncloud] 13/172: Set default sort of trashbin to timestamp descending

David Prévot taffit at moszumanska.debian.org
Sun May 18 20:09:34 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit c0e5975ab64285613563a7ef34ca7c8717c0f0fe
Author: Vincent Petry <pvince81 at owncloud.com>
Date:   Fri Apr 11 16:44:53 2014 +0200

    Set default sort of trashbin to timestamp descending
---
 apps/files/js/filelist.js          | 5 +----
 apps/files_trashbin/js/filelist.js | 1 +
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 1c24ca4..04c5a8f 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 3bb3a92..00fc7e1 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;
 	};
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list