mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Less model pollution
This commit is contained in:
parent
488da59143
commit
8e2364966a
8 changed files with 26 additions and 31 deletions
|
@ -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 });
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
|
||||
<h3>
|
||||
{{debug}}
|
||||
<i class="icon-bookmark x-episode-monitored" title="Toggle monitored status" />
|
||||
{{#if episodeTitle}}
|
||||
{{title}} - {{EpisodeNumber}} - {{episodeTitle}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue