1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-27 02:07:41 +00:00
Sonarr/UI/Calendar/UpcomingItemView.js

23 lines
570 B
JavaScript
Raw Normal View History

2013-06-07 05:33:01 +00:00
'use strict';
define(
[
2013-06-28 15:43:37 +00:00
'app',
'marionette',
'Episode/Layout'
], function (App, Marionette, EpisodeLayout) {
return Marionette.ItemView.extend({
template: 'Calendar/UpcomingItemTemplate',
2013-06-28 15:43:37 +00:00
tagName : 'div',
events : {
'click .x-episode-title' : '_showEpisodeDetails'
},
_showEpisodeDetails : function() {
var view = new EpisodeLayout({ model: this.model });
App.modalRegion.show(view);
}
});
2013-06-07 05:33:01 +00:00
});