You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Readarr/UI/SeasonPass/SeasonPassLayout.js

34 lines
891 B

'use strict';
define(
[
'marionette',
'Series/SeriesCollection',
'Series/SeasonCollection',
'SeasonPass/SeriesCollectionView',
'Shared/LoadingView'
], function (Marionette,
SeriesCollection,
SeasonCollection,
SeriesCollectionView,
LoadingView) {
return Marionette.Layout.extend({
template: 'SeasonPass/SeasonPassLayoutTemplate',
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
}));
}
});
});