diff options
| author | Cesar G <prototech91@gmail.com> | 2013-12-05 22:36:21 -0800 |
|---|---|---|
| committer | Cesar G <prototech91@gmail.com> | 2013-12-05 23:44:07 -0800 |
| commit | 58a07647595a617c7c0c73b4dbde3b5858b29227 (patch) | |
| tree | 6932cfc53f352455c9b52a39fec4a19cabb7769a /phpBB/includes | |
| parent | 97558e5fd489f1cb4d4b7bae025842ff467d97d9 (diff) | |
| download | forums-58a07647595a617c7c0c73b4dbde3b5858b29227.tar forums-58a07647595a617c7c0c73b4dbde3b5858b29227.tar.gz forums-58a07647595a617c7c0c73b4dbde3b5858b29227.tar.bz2 forums-58a07647595a617c7c0c73b4dbde3b5858b29227.tar.xz forums-58a07647595a617c7c0c73b4dbde3b5858b29227.zip | |
[ticket/12038] AJAXify move up/down buttons in custom profile fields page.
PHPBB3-12038
Diffstat (limited to 'phpBB/includes')
| -rw-r--r-- | phpBB/includes/acp/acp_profile.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/includes/acp/acp_profile.php b/phpBB/includes/acp/acp_profile.php index 4e8145009f..570bde1ac7 100644 --- a/phpBB/includes/acp/acp_profile.php +++ b/phpBB/includes/acp/acp_profile.php @@ -299,6 +299,14 @@ class acp_profile WHERE field_order IN ($field_order, " . (($action == 'move_up') ? $field_order - 1 : $field_order + 1) . ')'; $db->sql_query($sql); + if ($request->is_ajax()) + { + $json_response = new \phpbb\json_response; + $json_response->send(array( + 'success' => (bool) $db->sql_affectedrows(), + )); + } + break; case 'create': |
