Merge branch 'master' of ssh://phpmyadmin.git.sourceforge.net/gitroot/phpmyadmin/phpmyadmin

This commit is contained in:
Madhura Jayaratne
2011-02-18 18:56:20 +05:30

View File

@@ -230,10 +230,17 @@ $(document).ready(function() {
$.post($(this).attr('action'), $(this).serialize() , function(data) { $.post($(this).attr('action'), $(this).serialize() , function(data) {
if(data.success == true) { if(data.success == true) {
// fade out previous success message, if any // fade out previous messages, if any
$('.success').fadeOut(); $('.success').fadeOut();
$('.sqlquery_message').fadeOut();
// show a message that stays on screen // show a message that stays on screen
$('#sqlqueryform').before(data.message); $('#sqlqueryform').before(data.message);
// and display the query
$('<div class="sqlquery_message"></div>')
.html(data.sql_query)
.insertBefore('#sqlqueryform');
// unnecessary div that came from data.sql_query
$('.notice').remove();
$('#sqlqueryresults').show(); $('#sqlqueryresults').show();
// this happens if a USE command was typed // this happens if a USE command was typed
if (typeof data.reload != 'undefined') { if (typeof data.reload != 'undefined') {