diff options
author | Cesar G <prototech91@gmail.com> | 2013-12-05 22:35:06 -0800 |
---|---|---|
committer | Cesar G <prototech91@gmail.com> | 2013-12-05 23:41:26 -0800 |
commit | d399d255b69ad02e7b8d5f043637ffe948bae7e2 (patch) | |
tree | bffb886a0754390f219a0898235aec9b85ef5237 /phpBB | |
parent | 8d9cc63c19325f4782e7de8f72abd38b7af2657d (diff) | |
download | forums-d399d255b69ad02e7b8d5f043637ffe948bae7e2.tar forums-d399d255b69ad02e7b8d5f043637ffe948bae7e2.tar.gz forums-d399d255b69ad02e7b8d5f043637ffe948bae7e2.tar.bz2 forums-d399d255b69ad02e7b8d5f043637ffe948bae7e2.tar.xz forums-d399d255b69ad02e7b8d5f043637ffe948bae7e2.zip |
[ticket/12038] AJAXify move up/down buttons in the module management pages.
PHPBB3-12038
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/adm/style/acp_modules.html | 4 | ||||
-rw-r--r-- | 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 @@ <td style="width: 15%; white-space: nowrap; text-align: center; vertical-align: middle;"> <!-- IF modules.MODULE_ENABLED --><a href="{modules.U_DISABLE}">{L_DISABLE}</a><!-- ELSE --><a href="{modules.U_ENABLE}">{L_ENABLE}</a><!-- ENDIF --> </td> <td class="actions"> <span class="up-disabled" style="display:none;">{ICON_MOVE_UP_DISABLED}</span> - <span class="up"><a href="{modules.U_MOVE_UP}">{ICON_MOVE_UP}</a></span> + <span class="up"><a href="{modules.U_MOVE_UP}" data-ajax="row_up">{ICON_MOVE_UP}</a></span> <span class="down-disabled" style="display:none;">{ICON_MOVE_DOWN_DISABLED}</span> - <span class="down"><a href="{modules.U_MOVE_DOWN}">{ICON_MOVE_DOWN}</a></span> + <span class="down"><a href="{modules.U_MOVE_DOWN}" data-ajax="row_down">{ICON_MOVE_DOWN}</a></span> <a href="{modules.U_EDIT}">{ICON_EDIT}</a> <a href="{modules.U_DELETE}" data-ajax="row_delete">{ICON_DELETE}</a> </td> 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': |