2013-06-22 06:24:24 +00:00
|
|
|
'use strict';
|
2013-06-24 02:31:02 +00:00
|
|
|
define(['app',
|
|
|
|
'Series/Details/SeasonLayout',
|
|
|
|
'Series/SeasonCollection',
|
|
|
|
'Series/EpisodeCollection'],
|
|
|
|
function (App, SeasonLayout, SeasonCollection, EpisodeCollection) {
|
2013-06-01 19:31:39 +00:00
|
|
|
NzbDrone.Series.Details.SeasonCollectionView = Backbone.Marionette.CollectionView.extend({
|
|
|
|
|
2013-06-24 02:31:02 +00:00
|
|
|
itemView : SeasonLayout,
|
2013-06-01 19:31:39 +00:00
|
|
|
|
|
|
|
initialize: function (options) {
|
|
|
|
|
|
|
|
if (!options.episodeCollection) {
|
|
|
|
throw 'episodeCollection is needed';
|
|
|
|
}
|
|
|
|
|
|
|
|
this.episodeCollection = options.episodeCollection;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
itemViewOptions: function () {
|
|
|
|
return {
|
|
|
|
episodeCollection: this.episodeCollection
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|