mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-01-13 03:02:04 +01:00
16 lines
No EOL
513 B
JavaScript
16 lines
No EOL
513 B
JavaScript
var Backgrid = require('backgrid');
|
|
var ProfileCollection = require('../Profile/ProfileCollection');
|
|
var _ = require('underscore');
|
|
|
|
module.exports = Backgrid.Cell.extend({
|
|
className : 'profile-cell',
|
|
render : function(){
|
|
this.$el.empty();
|
|
var profileId = this.model.get(this.column.get('name'));
|
|
var profile = _.findWhere(ProfileCollection.models, {id : profileId});
|
|
if(profile) {
|
|
this.$el.html(profile.get('name'));
|
|
}
|
|
return this;
|
|
}
|
|
}); |