mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-19 01:44:13 +00:00
Merge pull request #580 from haiwen/sort_fix
[dir view] bugfix for 'sort'
This commit is contained in:
@@ -465,6 +465,7 @@ define([
|
|||||||
this.$dirent_list.empty();
|
this.$dirent_list.empty();
|
||||||
dirents.each(this.addOne, this);
|
dirents.each(this.addOne, this);
|
||||||
el.toggleClass('icon-caret-up icon-caret-down');
|
el.toggleClass('icon-caret-up icon-caret-down');
|
||||||
|
dirents.comparator = null;
|
||||||
},
|
},
|
||||||
|
|
||||||
sortByTime: function () {
|
sortByTime: function () {
|
||||||
@@ -484,6 +485,7 @@ define([
|
|||||||
this.$dirent_list.empty();
|
this.$dirent_list.empty();
|
||||||
dirents.each(this.addOne, this);
|
dirents.each(this.addOne, this);
|
||||||
el.toggleClass('icon-caret-up icon-caret-down');
|
el.toggleClass('icon-caret-up icon-caret-down');
|
||||||
|
dirents.comparator = null;
|
||||||
},
|
},
|
||||||
|
|
||||||
select: function () {
|
select: function () {
|
||||||
|
@@ -115,6 +115,8 @@ define([
|
|||||||
this.$tableBody.empty();
|
this.$tableBody.empty();
|
||||||
repos.each(this.addOne, this);
|
repos.each(this.addOne, this);
|
||||||
el.toggleClass('icon-caret-up icon-caret-down');
|
el.toggleClass('icon-caret-up icon-caret-down');
|
||||||
|
repos.comparator = null;
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
sortByTime: function() {
|
sortByTime: function() {
|
||||||
@@ -131,6 +133,7 @@ define([
|
|||||||
this.$tableBody.empty();
|
this.$tableBody.empty();
|
||||||
repos.each(this.addOne, this);
|
repos.each(this.addOne, this);
|
||||||
el.toggleClass('icon-caret-up icon-caret-down');
|
el.toggleClass('icon-caret-up icon-caret-down');
|
||||||
|
repos.comparator = null;
|
||||||
},
|
},
|
||||||
|
|
||||||
hide: function() {
|
hide: function() {
|
||||||
|
@@ -99,6 +99,7 @@ define([
|
|||||||
this.$tableBody.empty();
|
this.$tableBody.empty();
|
||||||
repos.each(this.addOne, this);
|
repos.each(this.addOne, this);
|
||||||
el.toggleClass('icon-caret-up icon-caret-down');
|
el.toggleClass('icon-caret-up icon-caret-down');
|
||||||
|
repos.comparator = null;
|
||||||
},
|
},
|
||||||
|
|
||||||
sortByTime: function() {
|
sortByTime: function() {
|
||||||
@@ -115,6 +116,7 @@ define([
|
|||||||
this.$tableBody.empty();
|
this.$tableBody.empty();
|
||||||
repos.each(this.addOne, this);
|
repos.each(this.addOne, this);
|
||||||
el.toggleClass('icon-caret-up icon-caret-down');
|
el.toggleClass('icon-caret-up icon-caret-down');
|
||||||
|
repos.comparator = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@@ -90,6 +90,7 @@ define([
|
|||||||
this.$tableBody.empty();
|
this.$tableBody.empty();
|
||||||
repos.each(this.addOne, this);
|
repos.each(this.addOne, this);
|
||||||
el.toggleClass('icon-caret-up icon-caret-down');
|
el.toggleClass('icon-caret-up icon-caret-down');
|
||||||
|
repos.comparator = null;
|
||||||
},
|
},
|
||||||
|
|
||||||
sortByTime: function() {
|
sortByTime: function() {
|
||||||
@@ -106,6 +107,7 @@ define([
|
|||||||
this.$tableBody.empty();
|
this.$tableBody.empty();
|
||||||
repos.each(this.addOne, this);
|
repos.each(this.addOne, this);
|
||||||
el.toggleClass('icon-caret-up icon-caret-down');
|
el.toggleClass('icon-caret-up icon-caret-down');
|
||||||
|
repos.comparator = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@@ -95,6 +95,7 @@ define([
|
|||||||
this.$tableBody.empty();
|
this.$tableBody.empty();
|
||||||
repos.each(this.addOne, this);
|
repos.each(this.addOne, this);
|
||||||
el.toggleClass('icon-caret-up icon-caret-down');
|
el.toggleClass('icon-caret-up icon-caret-down');
|
||||||
|
repos.comparator = null;
|
||||||
},
|
},
|
||||||
|
|
||||||
sortByTime: function() {
|
sortByTime: function() {
|
||||||
@@ -111,6 +112,7 @@ define([
|
|||||||
this.$tableBody.empty();
|
this.$tableBody.empty();
|
||||||
repos.each(this.addOne, this);
|
repos.each(this.addOne, this);
|
||||||
el.toggleClass('icon-caret-up icon-caret-down');
|
el.toggleClass('icon-caret-up icon-caret-down');
|
||||||
|
repos.comparator = null;
|
||||||
},
|
},
|
||||||
|
|
||||||
hide: function() {
|
hide: function() {
|
||||||
|
Reference in New Issue
Block a user