2013-06-07 07:33:01 +02:00
|
|
|
'use strict';
|
|
|
|
|
2013-06-25 01:41:59 +02:00
|
|
|
define(
|
|
|
|
[
|
2013-06-28 17:43:37 +02:00
|
|
|
'app',
|
2013-07-24 06:16:52 +02:00
|
|
|
'marionette'
|
|
|
|
], function (App, Marionette) {
|
2013-06-25 01:41:59 +02:00
|
|
|
return Marionette.ItemView.extend({
|
|
|
|
template: 'Calendar/UpcomingItemTemplate',
|
2013-06-28 17:43:37 +02:00
|
|
|
tagName : 'div',
|
|
|
|
|
2013-07-24 06:16:52 +02:00
|
|
|
events: {
|
|
|
|
'click .x-episode-title': '_showEpisodeDetails'
|
2013-06-28 17:43:37 +02:00
|
|
|
},
|
|
|
|
|
2013-07-24 06:16:52 +02:00
|
|
|
_showEpisodeDetails: function () {
|
|
|
|
App.vent.trigger(App.Commands.ShowEpisodeDetails, {episode: this.model});
|
2013-06-28 17:43:37 +02:00
|
|
|
}
|
2013-06-25 01:41:59 +02:00
|
|
|
});
|
2013-06-07 07:33:01 +02:00
|
|
|
});
|