Bug #3141319 Query execution time changes and disappears when no rows are returned

This commit is contained in:
Marc Delisle
2010-12-30 08:14:46 -05:00
parent c63d6a59a1
commit ecdbb6dcc7

View File

@@ -224,7 +224,10 @@ $(document).ready(function() {
$.post($(this).attr('action'), $(this).serialize() , function(data) {
if(data.success == true) {
PMA_ajaxShowMessage(data.message);
// fade out previous success message, if any
$('.success').fadeOut();
// show a message that stays on screen
$('#sqlqueryform').before(data.message);
$('#sqlqueryresults').show();
// this happens if a USE command was typed
if (typeof data.reload != 'undefined') {
@@ -243,6 +246,7 @@ $(document).ready(function() {
$('#sqlqueryresults').hide();
}
else {
// real results are returned
$('#sqlqueryresults').show();
$("#sqlqueryresults").html(data);
$("#sqlqueryresults").trigger('appendAnchor');