diff --git a/src/UI/.idea/jsLinters/jshint.xml b/src/UI/.idea/jsLinters/jshint.xml index 96fa6c67a..e85398a55 100644 --- a/src/UI/.idea/jsLinters/jshint.xml +++ b/src/UI/.idea/jsLinters/jshint.xml @@ -8,24 +8,22 @@ - - - + + - @@ -38,8 +36,6 @@ - - diff --git a/src/UI/Handlebars/Helpers/Html.js b/src/UI/Handlebars/Helpers/Html.js index 8f4b2b19a..78f81a4bd 100644 --- a/src/UI/Handlebars/Helpers/Html.js +++ b/src/UI/Handlebars/Helpers/Html.js @@ -2,15 +2,17 @@ define( [ + 'jquery', 'handlebars', 'System/StatusModel' - ], function (Handlebars, StatusModel) { + ], function ($, Handlebars, StatusModel) { - var placeHolder = StatusModel.get('urlBase') + '/Content/Images/poster-dark.jpg'; + var placeholder = StatusModel.get('urlBase') + '/Content/Images/poster-dark.jpg'; window.NzbDrone.imageError = function (img) { - if (!img.src.contains(placeHolder)) { - img.src = placeHolder; + if (!img.src.contains(placeholder)) { + img.src = placeholder; + $(img).addClass('placeholder-image'); } img.onerror = null; }; diff --git a/src/UI/Series/Index/Posters/SeriesPostersItemViewTemplate.html b/src/UI/Series/Index/Posters/SeriesPostersItemViewTemplate.html index 36bb4ff0f..7ef1c9c4e 100644 --- a/src/UI/Series/Index/Posters/SeriesPostersItemViewTemplate.html +++ b/src/UI/Series/Index/Posters/SeriesPostersItemViewTemplate.html @@ -11,15 +11,12 @@
{{/unless_eq}} - + +