bug #3313210 [interface] Columns class sometimes changed for nothing

This commit is contained in:
Marc Delisle
2011-06-07 11:06:38 -04:00
parent 7afbe60f2b
commit 82ac1e8028
3 changed files with 6 additions and 2 deletions

View File

@@ -7,6 +7,7 @@
- bug #3304544 [parser] master is not a reserved word - bug #3304544 [parser] master is not a reserved word
- bug #3307616 [edit] Inline edit updates multiple duplicate rows - bug #3307616 [edit] Inline edit updates multiple duplicate rows
- patch #3311539 [edit] Inline edit does not escape backslashes - patch #3311539 [edit] Inline edit does not escape backslashes
- bug #3313210 [interface] Columns class sometimes changed for nothing
3.4.2.0 (2011-06-07) 3.4.2.0 (2011-06-07)
- bug #3301249 [interface] Iconic table operations does not remove inline edit label - bug #3301249 [interface] Iconic table operations does not remove inline edit label

View File

@@ -1145,14 +1145,14 @@ $(document).ready(function() {
/** /**
* vertical column highlighting in horizontal mode when hovering over the column header * vertical column highlighting in horizontal mode when hovering over the column header
*/ */
$('.column_heading').live('hover', function() { $('.column_heading.pointer').live('hover', function() {
PMA_changeClassForColumn($(this), 'hover'); PMA_changeClassForColumn($(this), 'hover');
}); });
/** /**
* vertical column marking in horizontal mode when clicking the column header * vertical column marking in horizontal mode when clicking the column header
*/ */
$('.column_heading').live('click', function() { $('.column_heading.pointer').live('click', function() {
PMA_changeClassForColumn($(this), 'marked'); PMA_changeClassForColumn($(this), 'marked');
}); });
}) })

View File

@@ -867,6 +867,9 @@ function PMA_displayTableHeaders(&$is_display, &$fields_meta, $fields_cnt = 0, $
$th_class[] = 'condition'; $th_class[] = 'condition';
} }
$th_class[] = 'column_heading'; $th_class[] = 'column_heading';
if ($GLOBALS['cfg']['BrowsePointerEnable'] == true) {
$th_class[] = 'pointer';
}
echo ' class="' . implode(' ', $th_class) . '"'; echo ' class="' . implode(' ', $th_class) . '"';
if ($_SESSION['tmp_user_values']['disp_direction'] == 'horizontalflipped') { if ($_SESSION['tmp_user_values']['disp_direction'] == 'horizontalflipped') {