Now shows the sql query too when renaming a database.
This commit is contained in:
@@ -267,6 +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);
|
||||||
PMA_ajaxResponse($message, $message->isSuccess(), $extra_data);
|
PMA_ajaxResponse($message, $message->isSuccess(), $extra_data);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@@ -30,6 +30,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);
|
||||||
|
|
||||||
$("<span>" + PMA_messages['strReloadDatabase'] + "?</span>").dialog({
|
$("<span>" + PMA_messages['strReloadDatabase'] + "?</span>").dialog({
|
||||||
buttons: {"Yes": function() {
|
buttons: {"Yes": function() {
|
||||||
|
Reference in New Issue
Block a user