mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-19 21:44:30 -04:00
UI Cleanup - Updated Cells subtree.
This commit is contained in:
@@ -5,14 +5,20 @@ require('bootstrap');
|
||||
module.exports = Backgrid.Cell.extend({
|
||||
className : 'approval-status-cell',
|
||||
template : 'Cells/ApprovalStatusCellTemplate',
|
||||
render : function(){
|
||||
|
||||
render : function() {
|
||||
|
||||
var rejections = this.model.get(this.column.get('name'));
|
||||
if(rejections.length === 0) {
|
||||
|
||||
if (rejections.length === 0) {
|
||||
return this;
|
||||
}
|
||||
|
||||
this.templateFunction = Marionette.TemplateCache.get(this.template);
|
||||
|
||||
var html = this.templateFunction(rejections);
|
||||
this.$el.html('<i class="icon-exclamation-sign"/>');
|
||||
|
||||
this.$el.popover({
|
||||
content : html,
|
||||
html : true,
|
||||
@@ -21,6 +27,7 @@ module.exports = Backgrid.Cell.extend({
|
||||
placement : 'left',
|
||||
container : this.$el
|
||||
});
|
||||
|
||||
return this;
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user