Ajaxified Create Database action. Have to append newly created db to table yet though
This commit is contained in:
@@ -41,6 +41,11 @@ if (! $result) {
|
||||
// avoid displaying the not-created db name in header or navi panel
|
||||
$GLOBALS['db'] = '';
|
||||
$GLOBALS['table'] = '';
|
||||
|
||||
if($GLOBALS['is_ajax_request'] == true) {
|
||||
PMA_ajaxResponse($message, FALSE);
|
||||
}
|
||||
|
||||
require_once './libraries/header.inc.php';
|
||||
require_once './main.php';
|
||||
} else {
|
||||
@@ -48,6 +53,10 @@ if (! $result) {
|
||||
$message->addParam($new_db);
|
||||
$GLOBALS['db'] = $new_db;
|
||||
|
||||
if($GLOBALS['is_ajax_request'] == true) {
|
||||
PMA_ajaxResponse($message, true);
|
||||
}
|
||||
|
||||
require_once './libraries/header.inc.php';
|
||||
require_once './' . $cfg['DefaultTabDatabase'];
|
||||
}
|
||||
|
Reference in New Issue
Block a user