ColumnSelector: Include HTML in empty headers. Fixes #1335

This commit is contained in:
Rob Garrison 2016-12-14 13:00:51 -06:00
parent e5f41c4fdf
commit b9e89d4962
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -151,7 +151,7 @@
colSel.$column[colId] = $(this);
// set default col title
name = $header.attr(wo.columnSelector_name) || $header.text();
name = $header.attr(wo.columnSelector_name) || $header.text().trim() || c.headerContent[ index ];
if ($container.length) {
colSel.$wrapper[colId] = $(wo.columnSelector_layout.replace(/\{name\}/g, name)).appendTo($container);
colSel.$checkbox[colId] = colSel.$wrapper[colId]