Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@gmail.com>2015-03-13 07:42:25 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-03-13 07:42:25 +0300
commit92c6eb5a747fc226a266d7d895afa8b57950b932 (patch)
treea8879a1d69b6f4a664fcd81900faa5d1eba05378 /plugins
parentfe85ab09c24dc41a69bb08e39ac5ea41c43a4f66 (diff)
refs #6821 Truncation of labels on datatables leads to labels changed to "..."
Diffstat (limited to 'plugins')
-rw-r--r--plugins/CoreHome/javascripts/dataTable.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/CoreHome/javascripts/dataTable.js b/plugins/CoreHome/javascripts/dataTable.js
index 48dffda0c5..aa3e227fc2 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;
}