Show/hide column: fix bug - use .text instead of .html to handle special column name
This commit is contained in:
parent
7c4e0114e9
commit
ecade8433a
@ -687,8 +687,8 @@
|
||||
for (var i = 0; i < $firstRowCols.length; i++) {
|
||||
var currHeader = $firstRowCols[i];
|
||||
var listElmt = document.createElement('div');
|
||||
$(listElmt).html('<input type="checkbox" ' + (g.colVisib[i] ? 'checked="checked" ' : '') + '/>' +
|
||||
$(currHeader).text());
|
||||
$(listElmt).text($(currHeader).text())
|
||||
.prepend('<input type="checkbox" ' + (g.colVisib[i] ? 'checked="checked" ' : '') + '/>');
|
||||
$listDiv.append(listElmt);
|
||||
// add event on click
|
||||
$(listElmt).click(function() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user