2013-05-21 03:17:33 +03:00
|
|
|
"use strict";
|
|
|
|
|
2013-06-09 23:51:32 +03:00
|
|
|
define(['app', 'Cells/NzbDroneCell'], function () {
|
|
|
|
NzbDrone.Cells.EpisodeTitleCell = NzbDrone.Cells.NzbDroneCell.extend({
|
2013-05-21 03:17:33 +03:00
|
|
|
|
|
|
|
className: 'episode-title-cell',
|
|
|
|
|
|
|
|
events: {
|
|
|
|
'click': 'showDetails'
|
|
|
|
},
|
|
|
|
|
|
|
|
showDetails: function () {
|
2013-06-09 23:51:32 +03:00
|
|
|
var view = new NzbDrone.Episode.Layout({ model: this.cellValue });
|
2013-05-21 03:17:33 +03:00
|
|
|
NzbDrone.modalRegion.show(view);
|
2013-06-09 23:51:32 +03:00
|
|
|
},
|
|
|
|
|
|
|
|
render: function () {
|
|
|
|
this.$el.html(this.cellValue.get('title'));
|
|
|
|
return this;
|
2013-05-21 03:17:33 +03:00
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|