1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-03-04 10:28:08 +00:00
Lidarr/UI/Release/ApprovalStatusCell.js

23 lines
524 B
JavaScript
Raw Normal View History

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