1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-20 00:11:46 +02:00
Radarr/UI/Cells/EpisodeTitleCell.js

23 lines
527 B
JavaScript
Raw Normal View History

2013-06-22 08:24:24 +02:00
'use strict';
define(['app', 'Cells/NzbDroneCell'], function () {
2013-06-24 04:31:02 +02:00
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;
}
});
});