Added link to series from episode details

pull/24/head
Mark McDowall 12 years ago
parent f028d2338e
commit 263700954e

@ -26,19 +26,19 @@ define(
events: {
'click .x-episode-summary' : 'showSummary',
'click .x-episode-activity': 'showActivity',
'click .x-episode-search' : 'showSearch'
'click .x-episode-summary' : '_showSummary',
'click .x-episode-activity': '_showActivity',
'click .x-episode-search' : '_showSearch'
},
onShow: function () {
this.showSummary();
this._showSummary();
this._releaseSearchActivated = false;
},
showSummary: function (e) {
_showSummary: function (e) {
if (e) {
e.preventDefault();
}
@ -48,7 +48,7 @@ define(
},
showActivity: function (e) {
_showActivity: function (e) {
if (e) {
e.preventDefault();
}
@ -56,7 +56,7 @@ define(
this.ui.activity.tab('show');
},
showSearch: function (e) {
_showSearch: function (e) {
if (e) {
e.preventDefault();
}

@ -16,6 +16,10 @@
</div>
</div>
<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>
</div>
</div>

@ -65,6 +65,10 @@ define(
}
this.episodeCollection = options.episodeCollection.bySeason(this.model.get('seasonNumber'));
_.each(this.episodeCollection.models, function (episode) {
episode.set({ hideSeriesLink: true });
});
},
onShow: function () {

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

@ -54,7 +54,6 @@ define(
},
route : function () {
return '/series/' + this.get('titleSlug');
//return '/series/details/' + this.get('id');
},
qualityProfile: function () {

Loading…
Cancel
Save