From 7fa44155f1d27d99276d1b902c7a178625fc01f6 Mon Sep 17 00:00:00 2001 From: Patric Gustafsson Date: Tue, 23 Aug 2016 13:46:55 +0300 Subject: [PATCH] Remove odd CSS class logic from PHP and JS files Odd CSS class is no longer needed as background coloring is now done with CSS pseudo-class. Signed-off-by: Patric Gustafsson --- js/server_status_variables.js | 9 --------- libraries/server_status_variables.lib.php | 5 +---- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/js/server_status_variables.js b/js/server_status_variables.js index 47956f8464..9c3974ba14 100644 --- a/js/server_status_variables.js +++ b/js/server_status_variables.js @@ -88,21 +88,12 @@ AJAX.registerOnload('server_status_variables.js', function () { $('#linkSuggestions').css('display', 'none'); } - odd_row = false; $('#serverstatusvariables').find('th.name').each(function () { if ((textFilter === null || textFilter.exec($(this).text())) && (! alertFilter || $(this).next().find('span.attention').length > 0) && (categoryFilter.length === 0 || $(this).parent().hasClass('s_' + categoryFilter)) ) { - odd_row = ! odd_row; $(this).parent().css('display', ''); - if (odd_row) { - $(this).parent().addClass('odd'); - $(this).parent().removeClass('even'); - } else { - $(this).parent().addClass('even'); - $(this).parent().removeClass('odd'); - } } else { $(this).parent().css('display', 'none'); } diff --git a/libraries/server_status_variables.lib.php b/libraries/server_status_variables.lib.php index 60ec7d589e..0b4d6356d0 100644 --- a/libraries/server_status_variables.lib.php +++ b/libraries/server_status_variables.lib.php @@ -221,11 +221,8 @@ function PMA_getHtmlForRenderVariables($ServerStatusData, $alerts, $strShowStatu $retval .= ''; $retval .= ''; - $odd_row = false; foreach ($ServerStatusData->status as $name => $value) { - $odd_row = !$odd_row; - $retval .= 'allocationMap[$name]) ?' s_' . $ServerStatusData->allocationMap[$name] : '') . '">';