mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
modal region is loaded by controller
This commit is contained in:
parent
20794bc461
commit
bb86e20bed
3 changed files with 15 additions and 14 deletions
|
@ -1,11 +1,12 @@
|
|||
'use strict';
|
||||
define(
|
||||
[
|
||||
'app',
|
||||
'$',
|
||||
'marionette',
|
||||
'bootstrap'
|
||||
], function ($, Marionette) {
|
||||
return Marionette.Region.extend({
|
||||
], function (app, $, Marionette) {
|
||||
var region = Marionette.Region.extend({
|
||||
el: '#modal-region',
|
||||
|
||||
constructor: function () {
|
||||
|
@ -37,4 +38,12 @@ define(
|
|||
}
|
||||
|
||||
});
|
||||
|
||||
app.addInitializer(function () {
|
||||
app.addRegions({
|
||||
modalRegion : region
|
||||
});
|
||||
});
|
||||
|
||||
return region;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue