Ajaxified Create Database action. Have to append newly created db to table yet though

This commit is contained in:
ninadsp
2010-07-31 02:25:29 +05:30
parent b19fa7c60f
commit e6f083c703
3 changed files with 33 additions and 1 deletions

View File

@@ -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'];
}