Now shows the sql query too when renaming a database.

This commit is contained in:
ninadsp
2010-06-27 23:04:18 +05:30
parent a3dd431bdb
commit a968b58d5c
2 changed files with 2 additions and 0 deletions

View File

@@ -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);
}; };
} }

View File

@@ -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() {