mirror of
https://github.com/Radarr/Radarr
synced 2024-12-28 02:40:01 +00:00
28 lines
739 B
JavaScript
28 lines
739 B
JavaScript
'use strict';
|
|
define(['app',
|
|
'Series/Details/SeasonLayout',
|
|
'Series/SeasonCollection',
|
|
'Series/EpisodeCollection'],
|
|
function (App, SeasonLayout, SeasonCollection, EpisodeCollection) {
|
|
NzbDrone.Series.Details.SeasonCollectionView = Backbone.Marionette.CollectionView.extend({
|
|
|
|
itemView : SeasonLayout,
|
|
|
|
initialize: function (options) {
|
|
|
|
if (!options.episodeCollection) {
|
|
throw 'episodeCollection is needed';
|
|
}
|
|
|
|
this.episodeCollection = options.episodeCollection;
|
|
|
|
},
|
|
|
|
itemViewOptions: function () {
|
|
return {
|
|
episodeCollection: this.episodeCollection
|
|
};
|
|
}
|
|
|
|
});
|
|
});
|