1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00
Sonarr/UI/Cells/EpisodeTitleCell.js

34 lines
822 B
JavaScript
Raw Normal View History

2013-06-22 09:24:24 +03:00
'use strict';
define(
[
'app',
'Cells/NzbDroneCell'
], function (App, NzbDroneCell) {
return NzbDroneCell.extend({
className: 'episode-title-cell',
events: {
2013-07-29 02:13:14 +03:00
'click': '_showDetails'
},
render: function () {
2013-06-28 21:25:09 +03:00
var title = this.cellValue.get('title');
if (!title || title === '') {
title = 'TBA';
}
this.$el.html(title);
return this;
2013-07-29 02:13:14 +03:00
},
_showDetails: function () {
2013-08-22 00:47:39 +03:00
var hideSeriesLink = this.column.get('hideSeriesLink');
App.vent.trigger(App.Commands.ShowEpisodeDetails, {episode: this.cellValue, hideSeriesLink: hideSeriesLink });
}
});
});