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:
@@ -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');
|
||||
|
Reference in New Issue
Block a user