diff options
author | Jo Michael <me@mynetx.net> | 2012-04-29 21:07:01 +0400 |
---|---|---|
committer | Jo Michael <me@mynetx.net> | 2012-04-29 21:07:01 +0400 |
commit | f77906d67b2d8f85d98c9f89959a165357055ae3 (patch) | |
tree | 5cb62f9b5689a988de06aa4d396258680589740c /tbl_alter.php | |
parent | e51c55fc3bf2b5b6a7933d16f0b295241333d1db (diff) |
Sort fields table with JS after moving columns instead of 2nd ajax
Diffstat (limited to 'tbl_alter.php')
-rw-r--r-- | tbl_alter.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tbl_alter.php b/tbl_alter.php index 219e820f09..7c658b332b 100644 --- a/tbl_alter.php +++ b/tbl_alter.php @@ -39,7 +39,7 @@ $err_url = 'tbl_structure.php?' . PMA_generate_common_url($db, $table); /** * Moving columns */ -if (isset($_REQUEST['move_columns']) +if (isset($_REQUEST['move_columns']) && is_array($_REQUEST['move_columns']) && $GLOBALS['is_ajax_request']) { /* @@ -127,7 +127,13 @@ if (isset($_REQUEST['move_columns']) if ($tmp_error) { PMA_ajaxResponse(PMA_Message::error($tmp_error), false); } - PMA_ajaxResponse(PMA_Message::success(__('The columns have been moved successfully.')), true); + PMA_ajaxResponse( + PMA_Message::success(__('The columns have been moved successfully.')), + true, + array( + 'columns' => $column_names + ) + ); } /** |