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: {
'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();
}

View File

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

View File

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

View File

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

View File

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