From 413f66f4c2fff81ee58bd375c9e970a56e9c4a96 Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Thu, 31 Mar 2016 21:34:43 +1100 Subject: [PATCH] Fix #12125 Cannot highlight a column if I scroll down from the top of the table Signed-off-by: Madhura Jayaratne --- ChangeLog | 1 + js/sql.js | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d370ef1d7b..75e3ce938b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,7 @@ phpMyAdmin - ChangeLog - issue #12118 Fixed activation of some languages - issue #12121 Fixed error in 3NF step of normalization - issue #12135 Fix offering JSON datatype in incompatible MySQL versions +- issue #12125 Cannot highlight a column if I scroll down from the top of the table 4.6.0.0 (2016-03-22) + issue #11456 Disabled storage engines diff --git a/js/sql.js b/js/sql.js index ce46d71940..8a8ee57320 100644 --- a/js/sql.js +++ b/js/sql.js @@ -651,7 +651,11 @@ function PMA_changeClassForColumn($this_th, newclass, isAddClass) if (has_big_t) { th_index--; } - var $tds = $this_th.parents(".table_results").find('tbody tr').find('td.data:eq(' + th_index + ')'); + var $table = $this_th.parents('.table_results'); + if (! $table.length) { + $table = $this_th.parents('table').siblings('.table_results'); + } + var $tds = $table.find('tbody tr').find('td.data:eq(' + th_index + ')'); if (isAddClass === undefined) { $tds.toggleClass(newclass); } else {