2013-06-08 01:54:46 +02:00
|
|
|
"use strict";
|
|
|
|
|
2013-06-14 02:41:46 +02:00
|
|
|
require(['app', 'backgrid'], function () {
|
|
|
|
NzbDrone.Release.ApprovalStatusCell = Backgrid.Cell.extend({
|
2013-06-08 01:54:46 +02:00
|
|
|
|
2013-06-14 02:41:46 +02:00
|
|
|
className: "approval-status-cell",
|
2013-06-08 01:54:46 +02:00
|
|
|
|
2013-06-14 02:41:46 +02:00
|
|
|
render: function () {
|
|
|
|
var rejections = this.model.get(this.column.get("name"));
|
2013-06-08 01:54:46 +02:00
|
|
|
|
2013-06-14 02:41:46 +02:00
|
|
|
var result = '';
|
2013-06-08 01:54:46 +02:00
|
|
|
|
2013-06-14 02:41:46 +02:00
|
|
|
_.each(rejections, function (reason) {
|
|
|
|
result += reason + ' ';
|
|
|
|
});
|
|
|
|
|
|
|
|
this.$el.html(result);
|
|
|
|
this.delegateEvents();
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
});
|
2013-06-08 01:54:46 +02:00
|
|
|
});
|