1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 23:29:49 +00:00

enable/disable personal wiki

This commit is contained in:
lian
2015-04-15 09:36:42 +08:00
committed by Daniel Pan
parent 92d8ee3c8d
commit 66e938868a
8 changed files with 188 additions and 41 deletions

View File

@@ -8,8 +8,9 @@ define([
'app/views/myhome-sub-repos',
'app/views/myhome-shared-repos',
'app/views/dir',
'app/views/myhome-side-nav'
], function($, _, Backbone, Common, GroupCollection,
ReposView, SubReposView, SharedReposView, DirView) {
ReposView, SubReposView, SharedReposView, DirView, MyhomeSideNavView) {
'use strict';
var MyHomeView = Backbone.View.extend({
@@ -18,8 +19,7 @@ define([
initialize: function() {
this.$cont = this.$('#right-panel');
this.$sideNav = $('#myhome-side-nav');
this.sideNavView = new MyhomeSideNavView();
this.reposView = new ReposView();
this.subReposView = new SubReposView();
this.sharedReposView = new SharedReposView();
@@ -30,7 +30,7 @@ define([
},
showSideNav: function () {
this.$sideNav.show();
this.sideNavView.show();
},
ajaxLoadingShow: function() {
@@ -80,7 +80,7 @@ define([
hide: function() {
this.currentView.hide();
this.$sideNav.hide();
this.sideNavView.hide();
}
});