mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-09 20:42:37 +01:00
23 lines
570 B
JavaScript
23 lines
570 B
JavaScript
'use strict';
|
|
|
|
define(
|
|
[
|
|
'app',
|
|
'marionette',
|
|
'Episode/Layout'
|
|
], function (App, Marionette, EpisodeLayout) {
|
|
return Marionette.ItemView.extend({
|
|
template: 'Calendar/UpcomingItemTemplate',
|
|
tagName : 'div',
|
|
|
|
events : {
|
|
'click .x-episode-title' : '_showEpisodeDetails'
|
|
},
|
|
|
|
_showEpisodeDetails : function() {
|
|
var view = new EpisodeLayout({ model: this.model });
|
|
App.modalRegion.show(view);
|
|
}
|
|
});
|
|
});
|