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