You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
654 B
25 lines
654 B
12 years ago
|
'use strict';
|
||
|
define(
|
||
|
[
|
||
|
'backgrid',
|
||
|
'Quality/QualityProfileCollection'
|
||
|
], function (Backgrid, QualityProfileCollection) {
|
||
|
return Backgrid.Cell.extend({
|
||
|
className: 'quality-profile-cell',
|
||
|
|
||
|
render: function () {
|
||
|
|
||
|
this.$el.empty();
|
||
|
var qualityProfileId = this.model.get(this.column.get('name'));
|
||
|
|
||
|
var profile = _.findWhere(QualityProfileCollection.models, { id: qualityProfileId });
|
||
|
|
||
|
if (profile) {
|
||
|
this.$el.html(profile.get('name'));
|
||
|
}
|
||
|
|
||
|
return this;
|
||
|
}
|
||
|
});
|
||
|
});
|