mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-19 23:48:51 +00:00
31 lines
655 B
JavaScript
31 lines
655 B
JavaScript
|
/*global define*/
|
||
|
define([
|
||
|
'jquery',
|
||
|
'backbone',
|
||
|
'app/views/organization'
|
||
|
], function($, Backbone, OrganizationView) {
|
||
|
"use strict";
|
||
|
|
||
|
var OrganizationRouter = Backbone.Router.extend({
|
||
|
routes: {
|
||
|
'libs/:id(/*path)': 'showDir',
|
||
|
// Default
|
||
|
'*actions': 'defaultAction'
|
||
|
},
|
||
|
|
||
|
initialize: function() {
|
||
|
this.organizationView = new OrganizationView();
|
||
|
},
|
||
|
|
||
|
showDir: function() {
|
||
|
alert('todo');
|
||
|
},
|
||
|
|
||
|
defaultAction: function(){
|
||
|
this.organizationView.showPublicRepos();
|
||
|
}
|
||
|
});
|
||
|
|
||
|
return OrganizationRouter;
|
||
|
});
|