mirror of
https://github.com/Radarr/Radarr
synced 2024-12-29 03:15:19 +00:00
17 lines
484 B
JavaScript
17 lines
484 B
JavaScript
'use strict';
|
|
|
|
define(['app','Cells/NzbDroneCell'], function () {
|
|
return NzbDrone.Cells.NzbDroneCell.extend({
|
|
render: function () {
|
|
|
|
var templateName = this.column.get('template') || this.template;
|
|
|
|
this.templateFunction = Marionette.TemplateCache.get(templateName);
|
|
var data = this.cellValue.toJSON();
|
|
var html = this.templateFunction(data);
|
|
this.$el.html(html);
|
|
|
|
return this;
|
|
}
|
|
});
|
|
});
|