[ticket/102] Ajaxify deleting module from acp

B3P-102
This commit is contained in:
Marc Alexander
2014-04-08 18:16:31 +02:00
parent f3f9a5cbef
commit 767783027c
3 changed files with 32 additions and 5 deletions

View File

@@ -1167,6 +1167,15 @@ class portal_module
$this->cache->purge(); // make sure we don't get errors after re-adding a module
if ($this->request->is_ajax())
{
$json_response = new \phpbb\json_response;
$json_response->send(array(
'success' => true,
'MESSAGE_TITLE' => $this->user->lang['INFORMATION'],
'MESSAGE_TEXT' => $this->user->lang['SUCCESS_DELETE'],
));
}
trigger_error($this->user->lang['SUCCESS_DELETE'] . adm_back_link($this->u_action));
}
else