From a5d0930624d3981000503590ca51764771ff5b26 Mon Sep 17 00:00:00 2001 From: Sam Stenvall Date: Tue, 5 Aug 2014 15:27:33 +0300 Subject: [PATCH] [webui] properly render checkboxes in idnode grids --- src/webui/static/app/idnode.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/webui/static/app/idnode.js b/src/webui/static/app/idnode.js index 89f37849..ee24c258 100644 --- a/src/webui/static/app/idnode.js +++ b/src/webui/static/app/idnode.js @@ -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()