block user sorting in recent files
This commit is contained in:
parent
81e103074e
commit
2139a031e7
|
@ -174,6 +174,11 @@
|
|||
*/
|
||||
_clientSideSort: true,
|
||||
|
||||
/**
|
||||
* Whether or not users can change the sort attribute or direction
|
||||
*/
|
||||
_allowSorting: true,
|
||||
|
||||
/**
|
||||
* Current directory
|
||||
* @type String
|
||||
|
@ -718,7 +723,7 @@
|
|||
$target = $target.closest('a');
|
||||
}
|
||||
sort = $target.attr('data-sort');
|
||||
if (sort) {
|
||||
if (sort && this._allowSorting) {
|
||||
if (this._sort === sort) {
|
||||
this.setSort(sort, (this._sortDirection === 'desc')?'asc':'desc', true, true);
|
||||
}
|
||||
|
|
|
@ -28,6 +28,7 @@ $(document).ready(function () {
|
|||
direction: 'desc'
|
||||
};
|
||||
this.initialize($el, options);
|
||||
this._allowSorting = false;
|
||||
};
|
||||
RecentFileList.prototype = _.extend({}, OCA.Files.FileList.prototype,
|
||||
/** @lends OCA.Files.RecentFileList.prototype */ {
|
||||
|
|
Loading…
Reference in New Issue