Skip to content

Commit

Permalink
Fix #12125 Cannot highlight a column if I scroll down from the top of…
Browse files Browse the repository at this point in the history
… the table

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
  • Loading branch information
madhuracj committed Mar 31, 2016
1 parent 61dbcaf commit 413f66f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion js/sql.js
Expand Up @@ -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 {
Expand Down

0 comments on commit 413f66f

Please sign in to comment.