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

bugfix for 'dir view', modified grp-repo-tmpl

This commit is contained in:
llj
2015-04-17 18:07:17 +08:00
committed by Daniel Pan
parent cfad7ef7d4
commit 816960b129
6 changed files with 24 additions and 24 deletions

View File

@@ -5,16 +5,15 @@ define([
'common',
'app/collections/pub-repos',
'app/views/organization-repo',
'app/views/dir',
'app/views/add-pub-repo'
], function($, _, Backbone, Common, PubRepoCollection, OrganizationRepoView,
DirView, AddPubRepoView) {
AddPubRepoView) {
'use strict';
var OrganizationView = Backbone.View.extend({
el: '#main',
initialize: function() {
initialize: function(options) {
this.$sideNav = $('#org-side-nav');
this.$reposDiv = $('#organization-repos');
@@ -27,7 +26,7 @@ define([
this.listenTo(this.repos, 'add', this.addOne);
this.listenTo(this.repos, 'reset', this.reset);
this.dirView = new DirView();
this.dirView = options.dirView;
},
events: {