From 92c6eb5a747fc226a266d7d895afa8b57950b932 Mon Sep 17 00:00:00 2001 From: Thomas Steur Date: Fri, 13 Mar 2015 04:42:25 +0000 Subject: [PATCH] refs #6821 Truncation of labels on datatables leads to labels changed to "..." --- plugins/CoreHome/javascripts/dataTable.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/CoreHome/javascripts/dataTable.js b/plugins/CoreHome/javascripts/dataTable.js index 48dffda0c59..aa3e227fc21 100644 --- a/plugins/CoreHome/javascripts/dataTable.js +++ b/plugins/CoreHome/javascripts/dataTable.js @@ -1478,6 +1478,11 @@ $.extend(DataTable.prototype, UIControl.prototype, { // higlight all columns on hover $('td', domElem).hover( function() { + + if ($(this).hasClass('label')) { + return; + } + var table = $(this).closest('table'); var nthChild = $(this).parent('tr').children().index($(this)) + 1; var rows = $('> tbody > tr', table); @@ -1485,7 +1490,7 @@ $.extend(DataTable.prototype, UIControl.prototype, { if (!maxWidth[nthChild]) { maxWidth[nthChild] = 0; rows.find("td:nth-child(" + (nthChild) + ").column .value").each(function (index, element) { - var width = $(element).width(); + var width = $(element).width(); if (width > maxWidth[nthChild]) { maxWidth[nthChild] = width; }