[webui] properly render checkboxes in idnode grids
This commit is contained in:
parent
deaa9ceaa2
commit
a5d0930624
1 changed files with 11 additions and 1 deletions
|
@ -141,7 +141,8 @@ tvheadend.IdNodeField = function(conf)
|
|||
}
|
||||
if (this.enum || this.list)
|
||||
w = 300;
|
||||
return {
|
||||
|
||||
var props = {
|
||||
width: w,
|
||||
dataIndex: this.id,
|
||||
header: this.text,
|
||||
|
@ -153,6 +154,15 @@ tvheadend.IdNodeField = function(conf)
|
|||
dataIndex: this.id
|
||||
}
|
||||
};
|
||||
|
||||
// Special handling for checkboxes
|
||||
if (ftype === 'boolean')
|
||||
{
|
||||
props.xtype = 'checkcolumn';
|
||||
props.renderer = Ext.ux.grid.CheckColumn.prototype.renderer;
|
||||
}
|
||||
|
||||
return props;
|
||||
};
|
||||
|
||||
this.renderer = function()
|
||||
|
|
Loading…
Add table
Reference in a new issue