2013-06-07 05:33:01 +00:00
|
|
|
'use strict';
|
|
|
|
|
2013-06-24 23:41:59 +00:00
|
|
|
define(
|
|
|
|
[
|
2013-06-28 15:43:37 +00:00
|
|
|
'app',
|
|
|
|
'marionette',
|
|
|
|
'Episode/Layout'
|
|
|
|
], function (App, Marionette, EpisodeLayout) {
|
2013-06-24 23:41:59 +00:00
|
|
|
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-24 23:41:59 +00:00
|
|
|
});
|
2013-06-07 05:33:01 +00:00
|
|
|
});
|