[webui] properly render checkboxes in idnode grids

This commit is contained in:
Sam Stenvall 2014-08-05 15:27:33 +03:00 committed by Jaroslav Kysela
parent deaa9ceaa2
commit a5d0930624

View file

@ -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()