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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user