You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lidarr/UI/Cells/EpisodeTitleCell.js

23 lines
527 B

'use strict';
define(['app', 'Cells/NzbDroneCell'], function () {
12 years ago
return NzbDrone.Cells.NzbDroneCell.extend({
className: 'episode-title-cell',
events: {
'click': 'showDetails'
},
showDetails: function () {
var view = new NzbDrone.Episode.Layout({ model: this.cellValue });
NzbDrone.modalRegion.show(view);
},
render: function () {
this.$el.html(this.cellValue.get('title'));
return this;
}
});
});