mirror of
https://github.com/Readarr/Readarr
synced 2026-01-02 05:37:45 +01:00
29 lines
No EOL
683 B
JavaScript
29 lines
No EOL
683 B
JavaScript
var vent = require('vent');
|
|
var NzbDroneCell = require('./NzbDroneCell');
|
|
|
|
module.exports = NzbDroneCell.extend({
|
|
className : 'episode-title-cell',
|
|
|
|
events : {
|
|
'click' : '_showDetails'
|
|
},
|
|
|
|
render : function() {
|
|
var title = this.cellValue.get('title');
|
|
|
|
if (!title || title === '') {
|
|
title = 'TBA';
|
|
}
|
|
|
|
this.$el.html(title);
|
|
return this;
|
|
},
|
|
|
|
_showDetails : function() {
|
|
var hideSeriesLink = this.column.get('hideSeriesLink');
|
|
vent.trigger(vent.Commands.ShowEpisodeDetails, {
|
|
episode : this.cellValue,
|
|
hideSeriesLink : hideSeriesLink
|
|
});
|
|
}
|
|
}); |