mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Calendar/Upcoming use episode details.
This commit is contained in:
parent
2c3c19edcf
commit
8cb015e3a7
4 changed files with 45 additions and 25 deletions
|
@ -2,10 +2,21 @@
|
|||
|
||||
define(
|
||||
[
|
||||
'marionette'
|
||||
], function (Marionette) {
|
||||
'app',
|
||||
'marionette',
|
||||
'Episode/Layout'
|
||||
], function (App, Marionette, EpisodeLayout) {
|
||||
return Marionette.ItemView.extend({
|
||||
template: 'Calendar/UpcomingItemTemplate',
|
||||
tagName : 'div'
|
||||
tagName : 'div',
|
||||
|
||||
events : {
|
||||
'click .x-episode-title' : '_showEpisodeDetails'
|
||||
},
|
||||
|
||||
_showEpisodeDetails : function() {
|
||||
var view = new EpisodeLayout({ model: this.model });
|
||||
App.modalRegion.show(view);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue