* code for task#1657.

This commit is contained in:
xia0ta0
2013-08-01 10:44:08 +08:00
parent d68ffad251
commit b6b4010892
2 changed files with 22 additions and 2 deletions
+16
View File
@@ -233,6 +233,22 @@ class group extends control
else
{
$this->group->delete($groupID);
/* if ajax request, send result. */
if($this->server->ajax)
{
if(dao::isError())
{
$response['result'] = 'fail';
$response['message'] = dao::getError();
}
else
{
$response['result'] = 'success';
$response['message'] = '';
}
$this->send($response);
}
die(js::locate($this->createLink('group', 'browse'), 'parent'));
}
}