mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/12038] AJAXify move up/down buttons in custom profile fields page.
PHPBB3-12038
This commit is contained in:
@@ -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':
|
||||
|
Reference in New Issue
Block a user