diff options
author | Rouslan Placella <rouslan@placella.com> | 2012-06-11 20:58:35 +0400 |
---|---|---|
committer | Rouslan Placella <rouslan@placella.com> | 2012-06-11 20:58:35 +0400 |
commit | a16e723048940f87b4be4b4097d16c4376826f2c (patch) | |
tree | c47963c84facab595405927a0ba11dd9ad818ce9 /tbl_indexes.php | |
parent | 1871e8279e26c91deea2b0e642dbdd9de479492e (diff) |
Dropped PMA_ajaxResponse()
Diffstat (limited to 'tbl_indexes.php')
-rw-r--r-- | tbl_indexes.php | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/tbl_indexes.php b/tbl_indexes.php index dc07c9c925..5b1462585f 100644 --- a/tbl_indexes.php +++ b/tbl_indexes.php @@ -105,21 +105,25 @@ if (isset($_REQUEST['do_save_data'])) { 'Table %1$s has been altered successfully')); $message->addParam($table); - if ( $GLOBALS['is_ajax_request'] == true) { - $extra_data['index_table'] = PMA_Index::getView($table, $db); - $extra_data['sql_query'] = PMA_getMessage(null, $sql_query); - PMA_ajaxResponse($message, $message->isSuccess(), $extra_data); + if ($GLOBALS['is_ajax_request'] == true) { + $response = PMA_Response::getInstance(); + $response->addJSON('message', $message); + $response->addJSON('index_table', PMA_Index::getView($table, $db)); + $response->addJSON('sql_query', PMA_getMessage(null, $sql_query)); + } else { + $active_page = 'tbl_structure.php'; + include 'tbl_structure.php'; } - - $active_page = 'tbl_structure.php'; - include 'tbl_structure.php'; exit; } else { - if ( $GLOBALS['is_ajax_request'] == true) { - $extra_data['error'] = $error; - PMA_ajaxResponse($error, false); + if ($GLOBALS['is_ajax_request'] == true) { + $response = PMA_Response::getInstance(); + $response->isSuccess(false); + $response->addJSON('message', $error); + exit; + } else { + $error->display(); } - $error->display(); } } // end builds the new index |