diff --git a/module/group/control.php b/module/group/control.php index fd38a53baa..2f1ffb00b9 100644 --- a/module/group/control.php +++ b/module/group/control.php @@ -62,6 +62,7 @@ class group extends control { $this->group->create(); if(dao::isError()) die(js::error(dao::getError())); + if(isonlybody()) die(js::closeModal('parent.parent', 'this')); die(js::locate($this->createLink('group', 'browse'), 'parent')); } @@ -82,6 +83,7 @@ class group extends control if(!empty($_POST)) { $this->group->update($groupID); + if(isonlybody()) die(js::closeModal('parent.parent', 'this')); die(js::locate($this->createLink('group', 'browse'), 'parent')); }