mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-10-31 16:02:29 +01:00
32 lines
716 B
JavaScript
32 lines
716 B
JavaScript
'use strict';
|
|
|
|
define(
|
|
[
|
|
'app',
|
|
'Cells/NzbDroneCell'
|
|
], function (App, NzbDroneCell) {
|
|
return 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 () {
|
|
App.vent.trigger(App.Commands.ShowEpisodeDetails, {episode: this.cellValue});
|
|
}
|
|
});
|
|
});
|