2013-03-03 22:59:04 +03:00
|
|
|
'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() {
|
2013-03-04 02:18:43 +03:00
|
|
|
this.collection =new NzbDrone.Series.EpisodeCollection();
|
|
|
|
this.collection.fetch({data: {
|
|
|
|
seriesId: this.model.get('seriesId'),
|
|
|
|
seasonNumber:this.model.get('seasonNumber')
|
|
|
|
}});
|
2013-03-03 22:59:04 +03:00
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|