mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
modal region is loaded by controller
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
Reference in New Issue
Block a user