2013-03-03 22:26:41 +00:00
|
|
|
define(['app', 'Quality/QualityProfileCollection', 'Series/Details/SeasonCompositeView', 'Series/Details/SeasonCollection'], function () {
|
2013-03-02 19:13:23 +00:00
|
|
|
NzbDrone.Series.Details.SeriesDetailsView = Backbone.Marionette.CompositeView.extend({
|
|
|
|
|
2013-03-03 19:59:04 +00:00
|
|
|
itemView: NzbDrone.Series.Details.SeasonCompositeView,
|
|
|
|
itemViewContainer: '.x-series-seasons',
|
|
|
|
template: 'Series/Details/SeriesDetailsTemplate',
|
2013-03-02 19:13:23 +00:00
|
|
|
|
2013-03-03 19:59:04 +00:00
|
|
|
initialize: function () {
|
2013-03-03 22:26:41 +00:00
|
|
|
this.collection = new NzbDrone.Series.Details.SeasonCollection();
|
|
|
|
this.collection.fetch({data: { seriesId: this.model.get('id') }});
|
2013-03-02 19:13:23 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|