From c0d77fcca29d54187811a5cf7c1ffad77a036ee6 Mon Sep 17 00:00:00 2001 From: Keivan Beigi Date: Thu, 13 Jun 2013 17:39:53 -0700 Subject: [PATCH] fixed fanart backdrop not showing up. --- UI/Series/Details/SeriesDetailsLayout.js | 7 ++++++- UI/Series/SeriesModel.js | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/UI/Series/Details/SeriesDetailsLayout.js b/UI/Series/Details/SeriesDetailsLayout.js index 48fc5305f..f42745a04 100644 --- a/UI/Series/Details/SeriesDetailsLayout.js +++ b/UI/Series/Details/SeriesDetailsLayout.js @@ -20,7 +20,12 @@ define(['app', 'Series/Details/SeasonCollectionView', 'Shared/LoadingView'], fun onShow: function () { 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()); diff --git a/UI/Series/SeriesModel.js b/UI/Series/SeriesModel.js index df5aa84a3..9ba22f360 100644 --- a/UI/Series/SeriesModel.js +++ b/UI/Series/SeriesModel.js @@ -30,7 +30,7 @@ define(['app', 'Quality/QualityProfileCollection'], function (app, qualityProfil }, fanArt : function () { var poster = _.find(this.get('images'), function (image) { - return image.coverType === 3; + return image.coverType === 'fanart'; }); if (poster) {