diff options
author | diosmosis <benaka@piwik.pro> | 2014-09-09 16:26:48 +0400 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2014-09-09 16:26:48 +0400 |
commit | 6d0ab4e0c5125887ebc1750ea6d82240218b4da6 (patch) | |
tree | e9e5fb06ac59279d4d22a376363917260fe571d5 | |
parent | c2446bb843a234945a79491463bac00997b3844b (diff) |
Fixes #6178, select columns of a table correctly in handleColumnHighlighting function in dataTable.js.
-rw-r--r-- | plugins/CoreHome/javascripts/dataTable.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/CoreHome/javascripts/dataTable.js b/plugins/CoreHome/javascripts/dataTable.js index c0cbb8d135..4ba2607c14 100644 --- a/plugins/CoreHome/javascripts/dataTable.js +++ b/plugins/CoreHome/javascripts/dataTable.js @@ -1415,13 +1415,13 @@ $.extend(DataTable.prototype, UIControl.prototype, { if (!maxWidth[nthChild]) { maxWidth[nthChild] = 0; - rows.find("td:nth-child(" + (nthChild) + ") .column .value").each(function (index, element) { + rows.find("td:nth-child(" + (nthChild) + ").column .value").each(function (index, element) { var width = $(element).width(); if (width > maxWidth[nthChild]) { maxWidth[nthChild] = width; } }); - rows.find("td:nth-child(" + (nthChild) + ") .column .value").each(function (index, element) { + rows.find("td:nth-child(" + (nthChild) + ").column .value").each(function (index, element) { $(element).css({width: maxWidth[nthChild], display: 'inline-block'}); }); } |