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

[repo create] bugfix

This commit is contained in:
llj
2015-04-20 16:38:59 +08:00
committed by Daniel Pan
parent 55a87b55c5
commit e808ce2bc8
4 changed files with 9 additions and 8 deletions

View File

@@ -15,7 +15,7 @@ define([
el: '#main',
events: {
'click #repo-create': 'createRepo',
'click #group-repo-tabs .repo-create': 'createRepo',
'click #grp-repos .by-name': 'sortByName',
'click #grp-repos .by-time': 'sortByTime'
},

View File

@@ -13,7 +13,7 @@ define([
el: $('#repo-tabs'),
events: {
'click #repo-create': 'createRepo',
'click .repo-create': 'createRepo',
'click #my-own-repos .by-name': 'sortByName',
'click #my-own-repos .by-time': 'sortByTime'
},
@@ -25,6 +25,7 @@ define([
this.$tableBody = $('tbody', this.$table);
this.$loadingTip = $('.loading-tip', this.$tabs);
this.$emptyTip = $('#my-own-repos .empty-tips');
this.$repoCreateBtn = this.$('.repo-create');
this.repos = new RepoCollection();
this.listenTo(this.repos, 'add', this.addOne);
@@ -67,12 +68,12 @@ define([
},
show: function() {
$('#repo-create').show();
this.$repoCreateBtn.show();
this.showMyRepos();
},
hide: function() {
$('#repo-create').hide();
this.$repoCreateBtn.hide();
this.$el.hide();
this.$table.hide();
this.$emptyTip.hide();

View File

@@ -30,7 +30,7 @@ define([
},
events: {
'click #repo-create': 'createRepo',
'click #organization-repos .repo-create': 'createRepo',
'click #organization-repos .by-name': 'sortByName',
'click #organization-repos .by-time': 'sortByTime'
},