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'});
|
|
|
|
});
|