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="row">
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<a href="{{tvdbUrl}}" target="_blank">
|
<a href="{{tvdbUrl}}" target="_blank">
|
||||||
<img class="new-series-poster" src="{{remotePoster}}"
|
{{poster}}
|
||||||
{{defaultImg}} >
|
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.new-series-poster {
|
.series-poster {
|
||||||
min-width : 138px;
|
min-width : 138px;
|
||||||
min-height : 203px;
|
min-height : 203px;
|
||||||
max-width : 138px;
|
max-width : 138px;
|
||||||
|
|
|
@ -7,13 +7,14 @@ define(
|
||||||
], function (Handlebars, StatusModel, _) {
|
], function (Handlebars, StatusModel, _) {
|
||||||
Handlebars.registerHelper('poster', function () {
|
Handlebars.registerHelper('poster', function () {
|
||||||
|
|
||||||
|
var placeholder = StatusModel.get('urlBase') + '/Content/Images/poster-dark.png';
|
||||||
var poster = _.where(this.images, {coverType: 'poster'});
|
var poster = _.where(this.images, {coverType: 'poster'});
|
||||||
|
|
||||||
if (poster[0]) {
|
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 () {
|
Handlebars.registerHelper('traktUrl', function () {
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-3 hidden-xs">
|
<div class="col-sm-3 hidden-xs">
|
||||||
<img class="series-poster" src="{{poster}}" {{defaultImg}}>
|
{{poster}}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
<div class="form-horizontal">
|
<div class="form-horizontal">
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<div class="modal-body edit-series-modal">
|
<div class="modal-body edit-series-modal">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-3 hidden-xs">
|
<div class="col-sm-3 hidden-xs">
|
||||||
<img class="series-poster" src="{{poster}}" {{defaultImg}}>
|
{{poster}}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
<div class="form-horizontal">
|
<div class="form-horizontal">
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-2 col-xs-3">
|
<div class="col-md-2 col-xs-3">
|
||||||
<a href="{{route}}">
|
<a href="{{route}}">
|
||||||
<img class="series-poster" src="{{poster}}" {{defaultImg}}>
|
{{poster}}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-10 col-xs-9">
|
<div class="col-md-10 col-xs-9">
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<div class="ended-banner">Ended</div>
|
<div class="ended-banner">Ended</div>
|
||||||
{{/unless_eq}}
|
{{/unless_eq}}
|
||||||
<a href="{{route}}">
|
<a href="{{route}}">
|
||||||
<img class="series-poster" src="{{poster}}" {{defaultImg}}>
|
{{poster}}
|
||||||
<div class="center title">{{title}}</div>
|
<div class="center title">{{title}}</div>
|
||||||
</a>
|
</a>
|
||||||
<div class="hidden-title x-title">
|
<div class="hidden-title x-title">
|
||||||
|
|
Loading…
Reference in New Issue