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

27 lines
569 B
JavaScript
Raw Normal View History

2013-06-22 09:24:24 +03:00
'use strict';
define(
[
'backgrid'
], function (Backgrid) {
2013-06-08 02:54:46 +03:00
return Backgrid.Cell.extend({
2013-06-08 02:54:46 +03:00
className: 'approval-status-cell',
2013-06-08 02:54:46 +03:00
render: function () {
var rejections = this.model.get(this.column.get('name'));
2013-06-08 02:54:46 +03:00
var result = '';
2013-06-14 03:41:46 +03:00
_.each(rejections, function (reason) {
result += reason + ' ';
});
this.$el.html(result);
this.delegateEvents();
return this;
}
});
2013-06-14 03:41:46 +03:00
});