1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-18 08:16:07 +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

@@ -11,6 +11,8 @@ define([
var SharedReposView = Backbone.View.extend({
el: $('#repo-tabs'),
reposHdTemplate: _.template($('#shared-repos-hd-tmpl').html()),
initialize: function(options) {
this.$tabs = $('#repo-tabs');
this.$table = $('#repos-shared-to-me table');
@@ -33,8 +35,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) {