mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 15:09:14 +00:00
render repo table head when reset repo collection
This commit is contained in:
@@ -18,6 +18,7 @@ define([
|
||||
this.$sideNav = $('#org-side-nav');
|
||||
this.$reposDiv = $('#organization-repos');
|
||||
this.$table = $('#organization-repos table');
|
||||
this.$tableHead = $('thead', this.$table);
|
||||
this.$tableBody = $('tbody', this.$table);
|
||||
this.$loadingTip = $('#organization-repos .loading-tip');
|
||||
this.$emptyTip = $('#organization-repos .empty-tips');
|
||||
@@ -49,6 +50,7 @@ define([
|
||||
},
|
||||
|
||||
reset: function() {
|
||||
this.$tableHead.html(_.template($('#shared-repo-thead-tmpl').html()))
|
||||
this.$tableBody.empty();
|
||||
this.repos.each(this.addOne, this);
|
||||
if (this.repos.length) {
|
||||
|
Reference in New Issue
Block a user