2013-03-03 19:59:04 +00:00
|
|
|
|
'use strict';
|
|
|
|
|
define(['app', 'Series/Details/EpisodeItemView'], function () {
|
|
|
|
|
NzbDrone.Series.Details.SeasonCompositeView = Backbone.Marionette.CompositeView.extend({
|
2013-03-29 23:28:58 +00:00
|
|
|
|
itemView : NzbDrone.Series.Details.EpisodeItemView,
|
2013-03-03 19:59:04 +00:00
|
|
|
|
itemViewContainer: '.x-episodes',
|
2013-03-29 23:28:58 +00:00
|
|
|
|
template : 'Series/Details/SeasonCompositeTemplate',
|
2013-03-03 19:59:04 +00:00
|
|
|
|
|
2013-03-29 23:28:58 +00:00
|
|
|
|
initialize: function () {
|
|
|
|
|
this.collection = new NzbDrone.Series.EpisodeCollection();
|
2013-03-03 23:18:43 +00:00
|
|
|
|
this.collection.fetch({data: {
|
2013-03-29 23:28:58 +00:00
|
|
|
|
seriesId : this.model.get('seriesId'),
|
|
|
|
|
seasonNumber: this.model.get('seasonNumber')
|
2013-03-03 23:18:43 +00:00
|
|
|
|
}});
|
2013-03-03 19:59:04 +00:00
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|