diff --git a/js/db_routines.js b/js/db_routines.js index 8e5a0e82da..cf62df74ef 100644 --- a/js/db_routines.js +++ b/js/db_routines.js @@ -240,10 +240,7 @@ $(document).ready(function() { * @var ct Count of processed rows. */ var ct = 0; - $('table.data').find('tr').each(function() { - if ($(this).has('th').length) { - return true; - } + $('table.data').find('tr').has('td').each(function() { rowclass = (ct % 2 == 0) ? 'even' : 'odd'; $(this).removeClass().addClass(rowclass); ct++; diff --git a/js/functions.js b/js/functions.js index 392370d10c..fa48228418 100644 --- a/js/functions.js +++ b/js/functions.js @@ -2362,8 +2362,22 @@ $(document).ready(function() { } else { $curr_row.hide("slow", function () { $(this).remove(); + // Now we have removed the row from the list, but maybe + // some row classes are wrong now. So we will itirate + // throught all rows and assign correct classes to them. + /** + * @var ct Count of processed rows. + */ + var ct = 0; + $table.find('tr').has('td').each(function() { + rowclass = (ct % 2 == 0) ? 'even' : 'odd'; + $(this).removeClass().addClass(rowclass); + ct++; + }); }); } + // Show the query that we just executed + $('#js_query_display').html(data.sql_query); } else { PMA_ajaxShowMessage(PMA_messages['strErrorProcessingRequest'] + " : " + data.error); } diff --git a/libraries/db_events.inc.php b/libraries/db_events.inc.php index 2715b67e4f..4040494362 100644 --- a/libraries/db_events.inc.php +++ b/libraries/db_events.inc.php @@ -51,6 +51,7 @@ if (! empty($_GET['exportevent']) && ! empty($_GET['eventname'])) { /** * Display a list of available events */ +echo "\n\n\n\n"; echo '