|
|
|
@ -3,8 +3,9 @@ define(
|
|
|
|
|
[
|
|
|
|
|
'marionette',
|
|
|
|
|
'Episode/Summary/Layout',
|
|
|
|
|
'Episode/Search/Layout'
|
|
|
|
|
], function (Marionette, SummaryLayout, SearchLayout) {
|
|
|
|
|
'Episode/Search/Layout',
|
|
|
|
|
'Series/SeriesCollection'
|
|
|
|
|
], function (Marionette, SummaryLayout, SearchLayout, SeriesCollection) {
|
|
|
|
|
|
|
|
|
|
return Marionette.Layout.extend({
|
|
|
|
|
template: 'Episode/LayoutTemplate',
|
|
|
|
@ -30,6 +31,16 @@ define(
|
|
|
|
|
'click .x-episode-monitored': '_toggleMonitored'
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
templateHelpers: {},
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
onShow: function () {
|
|
|
|
|
this._showSummary();
|
|
|
|
|
this.searchLayout = new SearchLayout({ model: this.model });
|
|
|
|
|