You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
568 B
18 lines
568 B
var vent = require('vent');
|
|
var AppLayout = require('../../AppLayout');
|
|
var Marionette = require('marionette');
|
|
|
|
module.exports = Marionette.AppRouter.extend({
|
|
initialize : function() {
|
|
vent.on(vent.Commands.OpenControlPanelCommand, this._openControlPanel, this);
|
|
vent.on(vent.Commands.CloseControlPanelCommand, this._closeControlPanel, this);
|
|
},
|
|
|
|
_openControlPanel : function(view) {
|
|
AppLayout.controlPanelRegion.show(view);
|
|
},
|
|
|
|
_closeControlPanel : function() {
|
|
AppLayout.controlPanelRegion.closePanel();
|
|
}
|
|
}); |