mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
fixed fanart backdrop not showing up.
This commit is contained in:
parent
ca334ef664
commit
c0d77fcca2
@ -20,7 +20,12 @@ define(['app', 'Series/Details/SeasonCollectionView', 'Shared/LoadingView'], fun
|
|||||||
onShow: function () {
|
onShow: function () {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
$.backstretch(this.model.get('fanArt'));
|
if (this.model.has('fanArt')) {
|
||||||
|
$.backstretch(this.model.get('fanArt'));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$('body').removeClass('backdrop');
|
||||||
|
}
|
||||||
|
|
||||||
this.seasons.show(new NzbDrone.Shared.LoadingView());
|
this.seasons.show(new NzbDrone.Shared.LoadingView());
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ define(['app', 'Quality/QualityProfileCollection'], function (app, qualityProfil
|
|||||||
},
|
},
|
||||||
fanArt : function () {
|
fanArt : function () {
|
||||||
var poster = _.find(this.get('images'), function (image) {
|
var poster = _.find(this.get('images'), function (image) {
|
||||||
return image.coverType === 3;
|
return image.coverType === 'fanart';
|
||||||
});
|
});
|
||||||
|
|
||||||
if (poster) {
|
if (poster) {
|
||||||
|
Loading…
Reference in New Issue
Block a user