From 29dd921900be9184ca87c71a760274d183ccfff5 Mon Sep 17 00:00:00 2001 From: B1nke Date: Tue, 24 Mar 2015 13:39:13 +0100 Subject: [PATCH] Error when moving header Get an error when moving a header column and using autotooltip. Tooltips also show html encoded string in the tooltip. --- plugins/slick.autotooltips.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/slick.autotooltips.js b/plugins/slick.autotooltips.js index 955684f2a..751596791 100644 --- a/plugins/slick.autotooltips.js +++ b/plugins/slick.autotooltips.js @@ -69,8 +69,8 @@ function handleHeaderMouseEnter(e, args) { var column = args.column, $node = $(e.target).closest(".slick-header-column"); - if (!column.toolTip) { - $node.attr("title", ($node.innerWidth() < $node[0].scrollWidth) ? column.name : ""); + if (column && !column.toolTip) { + $node.attr("title", ($node.innerWidth() < $node[0].scrollWidth) ? $("
").html(column.name).text() : ""); } } @@ -80,4 +80,4 @@ "destroy": destroy }); } -})(jQuery); \ No newline at end of file +})(jQuery);