Added the PMA_ajaxResponse function for Ajax requests that change the

database charset. Required for db_operations.php
This commit is contained in:
ninadsp
2010-06-21 02:04:45 +05:30
parent cb4c110074
commit 603b6bf47b

View File

@@ -57,6 +57,15 @@ if (isset($submitcollation) && !empty($db_collation)) {
$result = PMA_DBI_query($sql_query);
$message = PMA_Message::success();
unset($db_charset, $db_collation);
/**
* If we are in an Ajax request, let us stop the execution here. Necessary for
* db charset change action on db_operations.php. If this causes a bug on
* other pages, we might have to move this to a different location.
*/
if( $GLOBALS['is_ajax_request'] == true) {
PMA_ajaxResponse($message, $message->isSuccess());
};
}
$GLOBALS['js_include'][] = 'functions.js';