mirror of
https://github.com/Radarr/Radarr
synced 2024-12-26 17:59:14 +00:00
Added link to series from episode details
This commit is contained in:
parent
f028d2338e
commit
263700954e
5 changed files with 17 additions and 9 deletions
|
@ -26,19 +26,19 @@ define(
|
||||||
|
|
||||||
events: {
|
events: {
|
||||||
|
|
||||||
'click .x-episode-summary' : 'showSummary',
|
'click .x-episode-summary' : '_showSummary',
|
||||||
'click .x-episode-activity': 'showActivity',
|
'click .x-episode-activity': '_showActivity',
|
||||||
'click .x-episode-search' : 'showSearch'
|
'click .x-episode-search' : '_showSearch'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
onShow: function () {
|
onShow: function () {
|
||||||
this.showSummary();
|
this._showSummary();
|
||||||
this._releaseSearchActivated = false;
|
this._releaseSearchActivated = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
showSummary: function (e) {
|
_showSummary: function (e) {
|
||||||
if (e) {
|
if (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@ define(
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
showActivity: function (e) {
|
_showActivity: function (e) {
|
||||||
if (e) {
|
if (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,7 @@ define(
|
||||||
this.ui.activity.tab('show');
|
this.ui.activity.tab('show');
|
||||||
},
|
},
|
||||||
|
|
||||||
showSearch: function (e) {
|
_showSearch: function (e) {
|
||||||
if (e) {
|
if (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,6 +16,10 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
|
{{#unless hideSeriesLink}}
|
||||||
|
<a href="{{series.route}}" class="btn pull-left" data-dismiss="modal">open series</a>
|
||||||
|
{{/unless}}
|
||||||
|
|
||||||
<button class="btn" data-dismiss="modal">close</button>
|
<button class="btn" data-dismiss="modal">close</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -65,6 +65,10 @@ define(
|
||||||
}
|
}
|
||||||
|
|
||||||
this.episodeCollection = options.episodeCollection.bySeason(this.model.get('seasonNumber'));
|
this.episodeCollection = options.episodeCollection.bySeason(this.model.get('seasonNumber'));
|
||||||
|
|
||||||
|
_.each(this.episodeCollection.models, function (episode) {
|
||||||
|
episode.set({ hideSeriesLink: true });
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
onShow: function () {
|
onShow: function () {
|
||||||
|
|
|
@ -89,7 +89,8 @@ define(
|
||||||
|
|
||||||
defaults: {
|
defaults: {
|
||||||
seasonNumber: 0,
|
seasonNumber: 0,
|
||||||
status : 0
|
status : 0,
|
||||||
|
title : 'TBA'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -54,7 +54,6 @@ define(
|
||||||
},
|
},
|
||||||
route : function () {
|
route : function () {
|
||||||
return '/series/' + this.get('titleSlug');
|
return '/series/' + this.get('titleSlug');
|
||||||
//return '/series/details/' + this.get('id');
|
|
||||||
},
|
},
|
||||||
|
|
||||||
qualityProfile: function () {
|
qualityProfile: function () {
|
||||||
|
|
Loading…
Reference in a new issue