1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 22:54:11 +00:00

clean sub-library related code

This commit is contained in:
Daniel Pan
2016-03-09 21:28:05 +08:00
parent 936898bfe7
commit 1f7af8b68a
3 changed files with 0 additions and 125 deletions

View File

@@ -18,8 +18,6 @@ define([
'': 'showRepos',
'my-libs/': 'showMyRepos',
'my-libs/lib/:repo_id(/*path)': 'showMyRepoDir',
'my-sub-libs/': 'showMySubRepos',
'my-sub-libs/lib/:repo_id(/*path)': 'showMySubRepoDir',
'shared-libs/': 'showSharedRepos',
'shared-libs/lib/:repo_id(/*path)': 'showSharedRepoDir',
'groups/': 'showGroups',
@@ -86,11 +84,6 @@ define([
this.sideNavView.setCurTab('mine');
},
showMySubRepos: function() {
this.switchCurrentView(this.myHomeView);
this.myHomeView.showMySubRepos();
},
showSharedRepos: function() {
this.switchCurrentView(this.myHomeView);
this.myHomeView.showSharedRepos();
@@ -130,17 +123,6 @@ define([
this.myHomeView.showDir('common', repo_id, path);
},
showMySubRepoDir: function(repo_id, path) {
if (path) {
path = '/' + path;
} else {
path = '/';
}
this.switchCurrentView(this.myHomeView);
this.myHomeView.showDir('my-sub-libs', repo_id, path);
this.sideNavView.setCurTab('sub-libs');
},
showSharedRepoDir: function(repo_id, path) {
if (path) {
path = '/' + path;