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 <patricjgustafsson@outlook.com>
This commit is contained in:
parent
ef4832e7d7
commit
7fa44155f1
@ -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');
|
||||
}
|
||||
|
||||
@ -221,11 +221,8 @@ function PMA_getHtmlForRenderVariables($ServerStatusData, $alerts, $strShowStatu
|
||||
$retval .= '</thead>';
|
||||
$retval .= '<tbody>';
|
||||
|
||||
$odd_row = false;
|
||||
foreach ($ServerStatusData->status as $name => $value) {
|
||||
$odd_row = !$odd_row;
|
||||
$retval .= '<tr class="' . ($odd_row ? 'odd' : 'even')
|
||||
. (isset($ServerStatusData->allocationMap[$name])
|
||||
$retval .= '<tr class="' . (isset($ServerStatusData->allocationMap[$name])
|
||||
?' s_' . $ServerStatusData->allocationMap[$name]
|
||||
: '')
|
||||
. '">';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user