Fixed: Show default poster view in Firefox
This commit is contained in:
parent
698093cbb9
commit
28da978150
|
@ -2,8 +2,7 @@
|
|||
<div class="row">
|
||||
<div class="col-md-2">
|
||||
<a href="{{tvdbUrl}}" target="_blank">
|
||||
<img class="new-series-poster" src="{{remotePoster}}"
|
||||
{{defaultImg}} >
|
||||
{{poster}}
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
.new-series-poster {
|
||||
.series-poster {
|
||||
min-width : 138px;
|
||||
min-height : 203px;
|
||||
max-width : 138px;
|
||||
|
|
|
@ -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('<img class="series-poster" src="{0}" {1}>'.format(poster[0].url, Handlebars.helpers.defaultImg.call()));
|
||||
}
|
||||
|
||||
return undefined;
|
||||
return new Handlebars.SafeString('<img class="series-poster placeholder-image" src="{0}">'.format(placeholder));
|
||||
});
|
||||
|
||||
Handlebars.registerHelper('traktUrl', function () {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
<div class="row">
|
||||
<div class="col-sm-3 hidden-xs">
|
||||
<img class="series-poster" src="{{poster}}" {{defaultImg}}>
|
||||
{{poster}}
|
||||
</div>
|
||||
<div class="col-sm-9">
|
||||
<div class="form-horizontal">
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<div class="modal-body edit-series-modal">
|
||||
<div class="row">
|
||||
<div class="col-sm-3 hidden-xs">
|
||||
<img class="series-poster" src="{{poster}}" {{defaultImg}}>
|
||||
{{poster}}
|
||||
</div>
|
||||
<div class="col-sm-9">
|
||||
<div class="form-horizontal">
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<div class="row">
|
||||
<div class="col-md-2 col-xs-3">
|
||||
<a href="{{route}}">
|
||||
<img class="series-poster" src="{{poster}}" {{defaultImg}}>
|
||||
{{poster}}
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-md-10 col-xs-9">
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<div class="ended-banner">Ended</div>
|
||||
{{/unless_eq}}
|
||||
<a href="{{route}}">
|
||||
<img class="series-poster" src="{{poster}}" {{defaultImg}}>
|
||||
{{poster}}
|
||||
<div class="center title">{{title}}</div>
|
||||
</a>
|
||||
<div class="hidden-title x-title">
|
||||
|
|
Loading…
Reference in New Issue