1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00

Reset srcset on failed load.

This commit is contained in:
Taloth Saldono 2016-04-23 11:07:54 +02:00
parent 90b5947a19
commit 4fc150f77b

View File

@ -7,6 +7,7 @@ var placeholder = StatusModel.get('urlBase') + '/Content/Images/poster-dark.png'
window.NzbDrone.imageError = function(img) { window.NzbDrone.imageError = function(img) {
if (!img.src.contains(placeholder)) { if (!img.src.contains(placeholder)) {
img.src = placeholder; img.src = placeholder;
img.srcset = "";
$(img).addClass('placeholder-image'); $(img).addClass('placeholder-image');
} }