Bug #3281316 Loading message stays on screen for too long
This commit is contained in:
@@ -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') {
|
||||
|
2
sql.php
2
sql.php
@@ -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;
|
||||
|
Reference in New Issue
Block a user