Episode details summary has access to series now

pull/3113/head
Mark McDowall 11 years ago committed by Mark McDowall
parent 8e2364966a
commit b1fa306223

@ -36,9 +36,8 @@ define(
initialize: function (options) {
this.templateHelpers.hideSeriesLink = options.hideSeriesLink;
var series = SeriesCollection.find({ id: this.model.get('seriesId') });
this.templateHelpers.series = series.toJSON();
var test = 1;
this.series = SeriesCollection.find({ id: this.model.get('seriesId') });
this.templateHelpers.series = this.series.toJSON();
},
onShow: function () {
@ -53,7 +52,7 @@ define(
}
this.ui.summary.tab('show');
this.summary.show(new SummaryLayout({model: this.model}));
this.summary.show(new SummaryLayout({model: this.model, series: this.series}));
},
_showActivity: function (e) {

@ -3,7 +3,6 @@
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h3>
{{debug}}
<i class="icon-bookmark x-episode-monitored" title="Toggle monitored status" />
{{#if episodeTitle}}
{{title}} - {{EpisodeNumber}} - {{episodeTitle}}

@ -39,6 +39,14 @@ define(
}
],
templateHelpers: {},
initialize: function (options) {
if (!this.model.series) {
this.templateHelpers.series = options.series.toJSON();
}
},
onShow: function () {
if (this.model.get('episodeFile')) {
this.activity.show(new Backgrid.Grid({

@ -1,4 +1,5 @@
<div class="episode-info">
{{debug}}
{{#with series}}
{{qualityProfile qualityProfileId}}
<span class="label label-info">{{network}}</span>

Loading…
Cancel
Save