1
0
Fork 0
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:
Mark McDowall 2013-06-28 15:12:57 -07:00
parent f028d2338e
commit 263700954e
5 changed files with 17 additions and 9 deletions

View file

@ -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();
} }

View file

@ -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>

View file

@ -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 () {

View file

@ -89,7 +89,8 @@ define(
defaults: { defaults: {
seasonNumber: 0, seasonNumber: 0,
status : 0 status : 0,
title : 'TBA'
} }
}); });
}); });

View file

@ -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 () {