1
0
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:
lian
2015-05-11 17:30:11 +08:00
parent 9ea129e9d2
commit 97bbf0156d
6 changed files with 29 additions and 46 deletions

View File

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