Include the query too if we are in an ajax request.
This commit is contained in:
@@ -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);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user