1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 14:42:10 +00:00

[group discuss] bugfix

This commit is contained in:
llj
2016-03-28 18:12:25 +08:00
parent fa022ed9df
commit 8763a32af8
3 changed files with 17 additions and 12 deletions

View File

@@ -21,7 +21,7 @@ define([
'shared-libs/': 'showSharedRepos',
'shared-libs/lib/:repo_id(/*path)': 'showSharedRepoDir',
'groups/': 'showGroups',
'group/:group_id/': 'showGroupRepos',
'group/:group_id/': 'showGroup',
'group/:group_id/lib/:repo_id(/*path)': 'showGroupRepoDir',
'group/:group_id/members/': 'showGroupMembers',
'group/:group_id/discussions/': 'showGroupDiscussions',
@@ -153,9 +153,9 @@ define([
});
},
showGroupRepos: function(group_id) {
showGroup: function(group_id, options) {
this.switchCurrentView(this.groupView);
this.groupView.showRepoList(group_id);
this.groupView.showRepoList(group_id, options);
this.sideNavView.setCurTab('group', {
'cur_group_tab': '',
'cur_group_id': group_id
@@ -177,13 +177,12 @@ define([
},
showGroupMembers: function(group_id) {
this.showGroupRepos(group_id);
this.showGroup(group_id);
this.groupView.showMembers();
},
showGroupDiscussions: function(group_id) {
this.showGroupRepos(group_id);
this.groupView.showDiscussions();
this.showGroup(group_id, {showDiscussions: true});
},
showOrgRepos: function() {