1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-23 20:37:42 +00:00

[backbone] Improve org and group page

This commit is contained in:
Daniel Pan
2015-03-08 20:47:42 +08:00
parent 4d471c0c24
commit 39b274fc7c
4 changed files with 13 additions and 4 deletions

View File

@@ -9,10 +9,10 @@ define([
'app/views/add-group-repo',
'app/views/group-recent-change',
'app/views/dir',
// 'app/views/dirents'
'app/views/group-nav',
], function($, _, Backbone, Common, GroupRepos, DirentCollection,
GroupRepoView, AddGroupRepoView/*, DirentView*/, GroupRecentChangeView,
DirView) {
DirView, GroupNavView) {
'use strict';
var GroupView = Backbone.View.extend({
@@ -41,6 +41,9 @@ define([
this.listenTo(this.repos, 'reset', this.reset);
this.dirView = new DirView();
this.groupView = new GroupNavView();
Common.initAccountPopup();
},
/*

View File

@@ -6,8 +6,9 @@ define([
'app/collections/repos',
'app/views/organization-repo',
'app/views/dir',
'app/views/group-nav',
], function($, _, Backbone, Common, RepoCollection, OrganizationRepoView,
DirView) {
DirView, GroupNavView) {
'use strict';
var OrganizationView = Backbone.View.extend({
@@ -25,6 +26,9 @@ define([
this.listenTo(this.repos, 'reset', this.reset);
this.dirView = new DirView();
this.groupView = new GroupNavView();
Common.initAccountPopup();
},
events: {