aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2013-12-05 22:36:21 -0800
committerCesar G <prototech91@gmail.com>2013-12-05 23:44:07 -0800
commit58a07647595a617c7c0c73b4dbde3b5858b29227 (patch)
tree6932cfc53f352455c9b52a39fec4a19cabb7769a /phpBB/includes
parent97558e5fd489f1cb4d4b7bae025842ff467d97d9 (diff)
downloadforums-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.php8
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':