1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-18 23:48:35 +02:00
Sonarr/src/UI/AppLayout.js

26 lines
681 B
JavaScript
Raw Normal View History

2013-10-09 04:43:41 +03:00
define(
[
'marionette',
2013-12-09 08:25:27 +03:00
'Shared/Modal/ModalRegion',
'Shared/ControlPanel/ControlPanelRegion'
], function (Marionette, ModalRegion, ControlPanelRegion) {
2013-10-09 04:43:41 +03:00
'use strict';
var Layout = Marionette.Layout.extend({
regions: {
2013-12-09 08:25:27 +03:00
navbarRegion : '#nav-region',
mainRegion : '#main-region'
2013-10-09 04:43:41 +03:00
},
initialize: function () {
this.addRegions({
2013-12-09 08:25:27 +03:00
modalRegion : ModalRegion,
controlPanelRegion: ControlPanelRegion
2013-10-09 04:43:41 +03:00
});
}
});
return new Layout({el: 'body'});
});