Bug #3281316 Loading message stays on screen for too long

This commit is contained in:
Marc Delisle
2011-04-10 09:01:31 -04:00
parent e083d8438a
commit 5d147c25af
2 changed files with 10 additions and 8 deletions

View File

@@ -264,13 +264,15 @@ $(document).ready(function() {
$('.success').fadeOut();
$('.sqlquery_message').fadeOut();
// show a message that stays on screen
$('#sqlqueryform').before(data.message);
// and display the query
if (typeof data.sql_query != 'undefined') {
$('<div class="sqlquery_message"></div>')
.html(data.sql_query)
.insertBefore('#sqlqueryform');
// unnecessary div that came from data.sql_query
$('.notice').remove();
} else {
$('#sqlqueryform').before(data.message);
}
$('#sqlqueryresults').show();
// this happens if a USE command was typed
if (typeof data.reload != 'undefined') {

View File

@@ -710,7 +710,7 @@ if (0 == $num_rows || $is_affected) {
}
if ($cfg['ShowSQL']) {
$extra_data['result_query'] = PMA_showMessage($message, $GLOBALS['sql_query'], 'success');
$extra_data['sql_query'] = PMA_showMessage($message, $GLOBALS['sql_query'], 'success');
}
if (isset($GLOBALS['reload']) && $GLOBALS['reload'] == 1) {
$extra_data['reload'] = 1;