|
|
@ -1,5 +1,5 @@
|
|
|
|
"use strict";
|
|
|
|
"use strict";
|
|
|
|
define(['app', 'Series/Details/SeasonCollectionView','Shared/LoadingView'], function () {
|
|
|
|
define(['app', 'Series/Details/SeasonCollectionView', 'Shared/LoadingView'], function () {
|
|
|
|
NzbDrone.Series.Details.SeriesDetailsLayout = Backbone.Marionette.Layout.extend({
|
|
|
|
NzbDrone.Series.Details.SeriesDetailsLayout = Backbone.Marionette.Layout.extend({
|
|
|
|
|
|
|
|
|
|
|
|
itemViewContainer: '.x-series-seasons',
|
|
|
|
itemViewContainer: '.x-series-seasons',
|
|
|
@ -9,10 +9,19 @@ define(['app', 'Series/Details/SeasonCollectionView','Shared/LoadingView'], func
|
|
|
|
seasons: '#seasons'
|
|
|
|
seasons: '#seasons'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
onShow: function () {
|
|
|
|
ui: {
|
|
|
|
|
|
|
|
header: '.x-header'
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
initialize: function () {
|
|
|
|
|
|
|
|
$('body').addClass('backdrop');
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onShow: function () {
|
|
|
|
var self = this;
|
|
|
|
var self = this;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$.backstretch(this.model.get('fanArt'));
|
|
|
|
|
|
|
|
|
|
|
|
this.seasons.show(new NzbDrone.Shared.LoadingView());
|
|
|
|
this.seasons.show(new NzbDrone.Shared.LoadingView());
|
|
|
|
|
|
|
|
|
|
|
|
this.seasonCollection = new NzbDrone.Series.SeasonCollection();
|
|
|
|
this.seasonCollection = new NzbDrone.Series.SeasonCollection();
|
|
|
@ -30,6 +39,7 @@ define(['app', 'Series/Details/SeasonCollectionView','Shared/LoadingView'], func
|
|
|
|
|
|
|
|
|
|
|
|
onClose: function () {
|
|
|
|
onClose: function () {
|
|
|
|
$('.backstretch').remove();
|
|
|
|
$('.backstretch').remove();
|
|
|
|
|
|
|
|
$('body').removeClass('backdrop');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|