Include the query too if we are in an ajax request.

This commit is contained in:
ninadsp
2010-06-30 01:16:49 +05:30
parent 7f062310c6
commit 5677d17722
2 changed files with 2 additions and 2 deletions

View File

@@ -267,7 +267,7 @@ if (strlen($db) && (! empty($db_rename) || ! empty($db_copy))) {
if( $GLOBALS['is_ajax_request'] == true) { if( $GLOBALS['is_ajax_request'] == true) {
$extra_data['newname'] = $newname; $extra_data['newname'] = $newname;
$extra_data['sqlquery'] = PMA_showMessage(NULL, $sql_query); $extra_data['sql_query'] = PMA_showMessage(NULL, $sql_query);
PMA_ajaxResponse($message, $message->isSuccess(), $extra_data); PMA_ajaxResponse($message, $message->isSuccess(), $extra_data);
}; };
} }

View File

@@ -38,7 +38,7 @@ $(document).ready(function() {
PMA_ajaxShowMessage(data.message); PMA_ajaxShowMessage(data.message);
window.parent.db = data.newname; window.parent.db = data.newname;
$("#topmenucontainer").after(data.sqlquery); $("#topmenucontainer").after(data.sql_query);
$("<span>" + PMA_messages['strReloadDatabase'] + "?</span>").dialog({ $("<span>" + PMA_messages['strReloadDatabase'] + "?</span>").dialog({
buttons: button_options buttons: button_options