mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-26 17:57:43 +00:00
27 lines
642 B
JavaScript
27 lines
642 B
JavaScript
'use strict';
|
|
|
|
define(
|
|
[
|
|
'app',
|
|
'Cells/NzbDroneCell',
|
|
'Episode/Layout'
|
|
], function (App, NzbDroneCell, EpisodeLayout) {
|
|
return NzbDroneCell.extend({
|
|
|
|
className: 'episode-title-cell',
|
|
|
|
events: {
|
|
'click': 'showDetails'
|
|
},
|
|
|
|
showDetails: function () {
|
|
var view = new EpisodeLayout({ model: this.cellValue });
|
|
App.modalRegion.show(view);
|
|
},
|
|
|
|
render: function () {
|
|
this.$el.html(this.cellValue.get('title'));
|
|
return this;
|
|
}
|
|
});
|
|
});
|