mirror of
https://github.com/Radarr/Radarr
synced 2024-12-25 01:11:43 +00:00
33 lines
881 B
JavaScript
33 lines
881 B
JavaScript
'use strict';
|
|
define(
|
|
[
|
|
'marionette',
|
|
'Series/SeriesCollection',
|
|
'Series/SeasonCollection',
|
|
'SeasonPass/SeriesCollectionView',
|
|
'Shared/LoadingView'
|
|
], function (Marionette,
|
|
SeriesCollection,
|
|
SeasonCollection,
|
|
SeriesCollectionView,
|
|
LoadingView) {
|
|
return Marionette.Layout.extend({
|
|
template: 'SeasonPass/LayoutTemplate',
|
|
|
|
regions: {
|
|
series: '#x-series'
|
|
},
|
|
|
|
onShow: function () {
|
|
var self = this;
|
|
|
|
this.series.show(new LoadingView());
|
|
|
|
this.seriesCollection = SeriesCollection;
|
|
|
|
self.series.show(new SeriesCollectionView({
|
|
collection: self.seriesCollection
|
|
}));
|
|
}
|
|
});
|
|
});
|