From 28da978150c7b51e5b4bcc4fadf2c068d0c98287 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 9 Jan 2015 16:24:52 -0800 Subject: [PATCH] Fixed: Show default poster view in Firefox --- src/UI/AddSeries/SearchResultViewTemplate.hbs | 3 +-- src/UI/AddSeries/addSeries.less | 2 +- src/UI/Handlebars/Helpers/Series.js | 5 +++-- src/UI/Series/Delete/DeleteSeriesTemplate.hbs | 2 +- src/UI/Series/Edit/EditSeriesViewTemplate.hbs | 2 +- .../Series/Index/Overview/SeriesOverviewItemViewTemplate.hbs | 2 +- .../Series/Index/Posters/SeriesPostersItemViewTemplate.hbs | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/UI/AddSeries/SearchResultViewTemplate.hbs b/src/UI/AddSeries/SearchResultViewTemplate.hbs index 12e5e7310..59d1465d9 100644 --- a/src/UI/AddSeries/SearchResultViewTemplate.hbs +++ b/src/UI/AddSeries/SearchResultViewTemplate.hbs @@ -2,8 +2,7 @@
diff --git a/src/UI/AddSeries/addSeries.less b/src/UI/AddSeries/addSeries.less index 7d681f85e..c44aaba39 100644 --- a/src/UI/AddSeries/addSeries.less +++ b/src/UI/AddSeries/addSeries.less @@ -65,7 +65,7 @@ } } - .new-series-poster { + .series-poster { min-width : 138px; min-height : 203px; max-width : 138px; diff --git a/src/UI/Handlebars/Helpers/Series.js b/src/UI/Handlebars/Helpers/Series.js index 8ad3a23e6..5c8723bb9 100644 --- a/src/UI/Handlebars/Helpers/Series.js +++ b/src/UI/Handlebars/Helpers/Series.js @@ -7,13 +7,14 @@ define( ], function (Handlebars, StatusModel, _) { Handlebars.registerHelper('poster', function () { + var placeholder = StatusModel.get('urlBase') + '/Content/Images/poster-dark.png'; var poster = _.where(this.images, {coverType: 'poster'}); if (poster[0]) { - return poster[0].url; + return new Handlebars.SafeString(''.format(poster[0].url, Handlebars.helpers.defaultImg.call())); } - return undefined; + return new Handlebars.SafeString(''.format(placeholder)); }); Handlebars.registerHelper('traktUrl', function () { diff --git a/src/UI/Series/Delete/DeleteSeriesTemplate.hbs b/src/UI/Series/Delete/DeleteSeriesTemplate.hbs index 3971b9444..50c27bd3e 100644 --- a/src/UI/Series/Delete/DeleteSeriesTemplate.hbs +++ b/src/UI/Series/Delete/DeleteSeriesTemplate.hbs @@ -7,7 +7,7 @@
diff --git a/src/UI/Series/Edit/EditSeriesViewTemplate.hbs b/src/UI/Series/Edit/EditSeriesViewTemplate.hbs index dba513a92..a514d1024 100644 --- a/src/UI/Series/Edit/EditSeriesViewTemplate.hbs +++ b/src/UI/Series/Edit/EditSeriesViewTemplate.hbs @@ -6,7 +6,7 @@