UI now loads the 250px image if available, and reverts to full size otherwise.

This commit is contained in:
Taloth Saldono
2015-01-29 21:13:24 +01:00
parent 35ab3a28fd
commit b145ea1a70
4 changed files with 46 additions and 4 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ define(
var poster = _.where(this.images, {coverType: 'poster'});
if (poster[0]) {
return new Handlebars.SafeString('<img class="series-poster" src="{0}" {1}>'.format(poster[0].url, Handlebars.helpers.defaultImg.call()));
return new Handlebars.SafeString('<img class="series-poster" {0}>'.format(Handlebars.helpers.defaultImg.call(null, poster[0].url, 250)));
}
return new Handlebars.SafeString('<img class="series-poster placeholder-image" src="{0}">'.format(placeholder));