mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-24 21:07:17 +00:00
render repo table head when reset repo collection
This commit is contained in:
@@ -51,6 +51,7 @@ define([
|
||||
},
|
||||
|
||||
reset: function() {
|
||||
this.$tableHead.html(_.template($('#shared-repo-thead-tmpl').html()))
|
||||
this.$tableBody.empty();
|
||||
this.repos.each(this.addOne, this);
|
||||
this.$loadingTip.hide();
|
||||
|
@@ -42,6 +42,7 @@ define([
|
||||
},
|
||||
|
||||
reset: function() {
|
||||
this.$tableHead.html(_.template($('#my-repo-thead-tmpl').html()))
|
||||
this.$tableBody.empty();
|
||||
this.repos.each(this.addOne, this);
|
||||
if (this.repos.length) {
|
||||
|
@@ -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');
|
||||
|
@@ -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) {
|
||||
|
Reference in New Issue
Block a user