1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 15:38:15 +00:00

fix bug when sort repo

This commit is contained in:
lian
2015-05-11 15:31:03 +08:00
parent 705e17384f
commit ac2ab17771
4 changed files with 9 additions and 0 deletions

View File

@@ -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() {

View File

@@ -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;
} }
}); });

View File

@@ -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;
} }
}); });

View File

@@ -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() {