Added id's for copy database and change database charset forms.

Hooked in the PMA_ajaxResponse function for change/copying a database
This commit is contained in:
ninadsp
2010-06-21 01:51:44 +05:30
parent 78b39d71ea
commit e9ffc7c5d5

View File

@@ -264,6 +264,10 @@ if (strlen($db) && (! empty($db_rename) || ! empty($db_copy))) {
$message = PMA_Message::error(); $message = PMA_Message::error();
} }
} }
if( $GLOBALS['is_ajax_request'] == true) {
PMA_ajaxResponse($message, $message->isSuccess());
};
} }
/* /*
@@ -440,7 +444,7 @@ if (!$is_information_schema) {
* Copy database * Copy database
*/ */
?> ?>
<form method="post" action="db_operations.php" <form id="copy_db_form" method="post" action="db_operations.php"
onsubmit="return emptyFormElements(this, 'newname')"> onsubmit="return emptyFormElements(this, 'newname')">
<?php <?php
if (isset($db_collation)) { if (isset($db_collation)) {
@@ -596,7 +600,7 @@ if (!$is_information_schema) {
/** /**
* Change database charset * Change database charset
*/ */
echo '<form method="post" action="./db_operations.php">' . "\n" echo '<form id="change_db_charset_form" method="post" action="./db_operations.php">' . "\n"
. PMA_generate_common_hidden_inputs($db, $table) . PMA_generate_common_hidden_inputs($db, $table)
. '<fieldset>' . "\n" . '<fieldset>' . "\n"
. ' <legend>'; . ' <legend>';