Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[webui] properly render checkboxes in idnode grids
  • Loading branch information
Jalle19 authored and perexg committed Aug 6, 2014
1 parent deaa9ce commit a5d0930
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/webui/static/app/idnode.js
Expand Up @@ -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,
Expand All @@ -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()
Expand Down

0 comments on commit a5d0930

Please sign in to comment.