2013-06-22 06:24:24 +00:00
|
|
|
'use strict';
|
2013-05-21 00:17:33 +00:00
|
|
|
|
2013-06-24 23:41:59 +00:00
|
|
|
define(
|
|
|
|
[
|
|
|
|
'app',
|
|
|
|
'Cells/NzbDroneCell',
|
|
|
|
'Episode/Layout'
|
|
|
|
], function (App, NzbDroneCell, EpisodeLayout) {
|
|
|
|
return NzbDroneCell.extend({
|
2013-05-21 00:17:33 +00:00
|
|
|
|
2013-06-24 23:41:59 +00:00
|
|
|
className: 'episode-title-cell',
|
2013-05-21 00:17:33 +00:00
|
|
|
|
2013-06-24 23:41:59 +00:00
|
|
|
events: {
|
|
|
|
'click': 'showDetails'
|
|
|
|
},
|
2013-05-21 00:17:33 +00:00
|
|
|
|
2013-06-24 23:41:59 +00:00
|
|
|
showDetails: function () {
|
|
|
|
var view = new EpisodeLayout({ model: this.cellValue });
|
|
|
|
App.modalRegion.show(view);
|
|
|
|
},
|
2013-06-09 20:51:32 +00:00
|
|
|
|
2013-06-24 23:41:59 +00:00
|
|
|
render: function () {
|
|
|
|
this.$el.html(this.cellValue.get('title'));
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
});
|
2013-05-21 00:17:33 +00:00
|
|
|
});
|