1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-10-21 10:51:17 +00:00

[guest-user] update url of "libraries" and "my home" tab

This commit is contained in:
lian
2015-06-25 12:05:47 +08:00
parent 1345a340fe
commit 803dcf8e6d
4 changed files with 12 additions and 11 deletions

View File

@@ -28,7 +28,7 @@ define([
'common/lib/:repo_id(/*path)': 'showCommonDir',
'starred/': 'showStarredFile',
// Default
'*actions': 'defaultAction'
'*actions': 'showRepos'
},
initialize: function() {
@@ -158,14 +158,8 @@ define([
}
this.switchCurrentView(this.orgView);
this.orgView.showDir(repo_id, path);
},
defaultAction: function(actions) {
// We have no matching route, lets just log what the URL was
this.switchCurrentView(this.myHomeView);
this.myHomeView.showMyRepos();
}
});
return Router;