[ticket/102] Add possibility to move module up via ajax

B3P-102
This commit is contained in:
Marc Alexander
2014-04-08 00:21:48 +02:00
parent 86be688cf9
commit 6692d4f71e
2 changed files with 9 additions and 1 deletions

View File

@@ -841,6 +841,12 @@ class portal_module
}
$this->cache->destroy('portal_modules');
if ($this->request->is_ajax())
{
$json_response = new \phpbb\json_response;
$json_response->send(array('success' => true));
}
redirect($this->u_action); // redirect in order to get rid of excessive URL parameters
}