From 2d56821c0f1337ae3fec7e845a396e2b0448fdeb Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 7 Jun 2011 11:43:30 -0400 Subject: [PATCH] Improved fix for bug #3313210 --- js/sql.js | 2 +- libraries/display_tbl.lib.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/js/sql.js b/js/sql.js index 7e8bccf9d..26075d48f 100644 --- a/js/sql.js +++ b/js/sql.js @@ -1152,7 +1152,7 @@ $(document).ready(function() { /** * vertical column marking in horizontal mode when clicking the column header */ - $('.column_heading.pointer').live('click', function() { + $('.column_heading.marker').live('click', function() { PMA_changeClassForColumn($(this), 'marked'); }); }) diff --git a/libraries/display_tbl.lib.php b/libraries/display_tbl.lib.php index c5b46fbc4..64a0383cd 100644 --- a/libraries/display_tbl.lib.php +++ b/libraries/display_tbl.lib.php @@ -870,6 +870,9 @@ function PMA_displayTableHeaders(&$is_display, &$fields_meta, $fields_cnt = 0, $ if ($GLOBALS['cfg']['BrowsePointerEnable'] == true) { $th_class[] = 'pointer'; } + if ($GLOBALS['cfg']['BrowseMarkerEnable'] == true) { + $th_class[] = 'marker'; + } echo ' class="' . implode(' ', $th_class) . '"'; if ($_SESSION['tmp_user_values']['disp_direction'] == 'horizontalflipped') {