mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-26 17:57:43 +00:00
16 lines
No EOL
659 B
JavaScript
16 lines
No EOL
659 B
JavaScript
'use strict';
|
|
define(['app', 'Series/Details/EpisodeItemView'], function () {
|
|
NzbDrone.Series.Details.SeasonCompositeView = Backbone.Marionette.CompositeView.extend({
|
|
itemView : NzbDrone.Series.Details.EpisodeItemView,
|
|
itemViewContainer: '.x-episodes',
|
|
template : 'Series/Details/SeasonCompositeTemplate',
|
|
|
|
initialize: function () {
|
|
this.collection = new NzbDrone.Series.EpisodeCollection();
|
|
this.collection.fetch({data: {
|
|
seriesId : this.model.get('seriesId'),
|
|
seasonNumber: this.model.get('seasonNumber')
|
|
}});
|
|
}
|
|
});
|
|
}); |