mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
21 lines
503 B
JavaScript
21 lines
503 B
JavaScript
'use strict';
|
|
|
|
define(
|
|
[
|
|
'app',
|
|
'marionette'
|
|
], function (App, Marionette) {
|
|
return Marionette.ItemView.extend({
|
|
template: 'Calendar/UpcomingItemTemplate',
|
|
tagName : 'div',
|
|
|
|
events: {
|
|
'click .x-episode-title': '_showEpisodeDetails'
|
|
},
|
|
|
|
_showEpisodeDetails: function () {
|
|
App.vent.trigger(App.Commands.ShowEpisodeDetails, {episode: this.model});
|
|
}
|
|
});
|
|
});
|