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

@@ -34,6 +34,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) {
@@ -46,14 +47,9 @@ define([
this.$loadingTip.hide();
},
renderPath: function() {
//
},
showSharedRepos: function() {
this.repos.fetch({reset: true});
this.$tabs.show();
//this.$table.parent().show();
this.$table.hide();
this.$loadingTip.show();
$('#shared-lib-tab', this.$tabs).parent().addClass('ui-state-active');