2013-04-23 03:44:47 +03:00
|
|
|
"use strict";
|
2013-04-23 05:07:21 +03:00
|
|
|
define(['app', 'Quality/QualityProfileCollection', 'Series/Details/SeasonLayout', 'Series/SeasonCollection'], function () {
|
2013-03-02 22:13:23 +03:00
|
|
|
NzbDrone.Series.Details.SeriesDetailsView = Backbone.Marionette.CompositeView.extend({
|
|
|
|
|
2013-04-23 05:07:21 +03:00
|
|
|
itemView : NzbDrone.Series.Details.SeasonLayout,
|
2013-03-03 22:59:04 +03:00
|
|
|
itemViewContainer: '.x-series-seasons',
|
2013-03-30 02:28:58 +03:00
|
|
|
template : 'Series/Details/SeriesDetailsTemplate',
|
2013-03-02 22:13:23 +03:00
|
|
|
|
2013-03-03 22:59:04 +03:00
|
|
|
initialize: function () {
|
2013-03-04 01:42:26 +03:00
|
|
|
this.collection = new NzbDrone.Series.SeasonCollection();
|
2013-03-04 01:26:41 +03:00
|
|
|
this.collection.fetch({data: { seriesId: this.model.get('id') }});
|
2013-04-23 05:07:21 +03:00
|
|
|
|
|
|
|
//$.backstretch(this.model.get('fanArt'));
|
|
|
|
},
|
|
|
|
|
|
|
|
onClose: function(){
|
|
|
|
$('.backstretch').remove();
|
2013-03-02 22:13:23 +03:00
|
|
|
}
|
|
|
|
});
|
2013-04-23 03:44:47 +03:00
|
|
|
});
|