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

upate render repo table thead

This commit is contained in:
lian
2015-05-11 18:39:21 +08:00
parent 97bbf0156d
commit f725506262
5 changed files with 30 additions and 6 deletions

View File

@@ -13,6 +13,8 @@ define([
var OrganizationView = Backbone.View.extend({
el: '#main',
reposHdTemplate: _.template($('#shared-repos-hd-tmpl').html()),
initialize: function(options) {
this.$sideNav = $('#org-side-nav');
@@ -49,8 +51,12 @@ define([
}
},
renderReposHd: function() {
this.$tableHead.html(this.reposHdTemplate());
},
reset: function() {
this.$tableHead.html(_.template($('#shared-repo-thead-tmpl').html()))
this.renderReposHd();
this.$tableBody.empty();
this.repos.each(this.addOne, this);
if (this.repos.length) {