Remove odd CSS class logic from JS and PHP files
Odd CSS class is no longer needed, background coloring now done with CSS pseudo-class. Signed-off-by: Patric Gustafsson <patricjgustafsson@outlook.com>
This commit is contained in:
parent
93bb4c39a3
commit
aa764e1ea3
@ -163,20 +163,14 @@ AJAX.registerOnload('server_databases.js', function () {
|
||||
|
||||
/* Filters the rows by the user given regexp */
|
||||
function filterVariables(textFilter) {
|
||||
var $row, odd_row = false, databasesCount = 0;
|
||||
var $row, databasesCount = 0;
|
||||
$('#tabledatabases').find('.db-row').each(function () {
|
||||
$row = $(this);
|
||||
if (textFilter === null ||
|
||||
textFilter.exec($row.find('.name').text())
|
||||
) {
|
||||
odd_row = ! odd_row;
|
||||
$row.css('display', '');
|
||||
databasesCount += 1;
|
||||
if (odd_row) {
|
||||
$row.addClass('odd').removeClass('even');
|
||||
} else {
|
||||
$row.addClass('even').removeClass('odd');
|
||||
}
|
||||
} else {
|
||||
$row.css('display', 'none');
|
||||
}
|
||||
|
||||
@ -433,16 +433,13 @@ class ServerDatabasesController extends Controller
|
||||
*/
|
||||
private function _getHtmlForTableBody($column_order, $replication_types)
|
||||
{
|
||||
$odd_row = true;
|
||||
$html = '<tbody>' . "\n";
|
||||
|
||||
foreach ($this->_databases as $current) {
|
||||
$tr_class = $odd_row ? 'odd' : 'even';
|
||||
$tr_class .= ' db-row';
|
||||
$tr_class = ' db-row';
|
||||
if ($this->dbi->isSystemSchema($current['SCHEMA_NAME'], true)) {
|
||||
$tr_class .= ' noclick';
|
||||
}
|
||||
$odd_row = ! $odd_row;
|
||||
|
||||
$generated_html = $this->_buildHtmlForDb(
|
||||
$current,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user