* finish task #1660.

This commit is contained in:
wyd621
2013-07-30 10:11:41 +08:00
parent 6ff5e9aa1b
commit dd36fdd3a4
3 changed files with 14 additions and 2 deletions
+6 -2
View File
@@ -89,8 +89,12 @@ class dept extends control
{
if($confirm == 'no')
{
echo js::confirm($this->lang->dept->confirmDelete, $this->createLink('dept', 'delete', "deptID=$deptID&confirm=yes"));
exit;
$sons = $this->dept->getSons($deptID);
$users = $this->dept->getUsers($deptID);
if($sons) die(js::alert($this->lang->dept->error->hasSons));
if($users) die(js::alert($this->lang->dept->error->hasUsers));
die(js::confirm($this->lang->dept->confirmDelete, $this->createLink('dept', 'delete', "deptID=$deptID&confirm=yes")));
}
else
{