From d399d255b69ad02e7b8d5f043637ffe948bae7e2 Mon Sep 17 00:00:00 2001 From: Cesar G Date: Thu, 5 Dec 2013 22:35:06 -0800 Subject: [PATCH] [ticket/12038] AJAXify move up/down buttons in the module management pages. PHPBB3-12038 --- phpBB/adm/style/acp_modules.html | 4 ++-- phpBB/includes/acp/acp_modules.php | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/phpBB/adm/style/acp_modules.html b/phpBB/adm/style/acp_modules.html index 5024a950b9..c7688a610c 100644 --- a/phpBB/adm/style/acp_modules.html +++ b/phpBB/adm/style/acp_modules.html @@ -151,9 +151,9 @@  {L_DISABLE}{L_ENABLE}  - {ICON_MOVE_UP} + {ICON_MOVE_UP} - {ICON_MOVE_DOWN} + {ICON_MOVE_DOWN} {ICON_EDIT} {ICON_DELETE} diff --git a/phpBB/includes/acp/acp_modules.php b/phpBB/includes/acp/acp_modules.php index 100e33044b..c124377ba9 100644 --- a/phpBB/includes/acp/acp_modules.php +++ b/phpBB/includes/acp/acp_modules.php @@ -170,6 +170,14 @@ class acp_modules $this->remove_cache_file(); } + if ($request->is_ajax()) + { + $json_response = new \phpbb\json_response; + $json_response->send(array( + 'success' => ($move_module_name !== false), + )); + } + break; case 'quickadd':