* adjust for user.

This commit is contained in:
wangyidong
2015-11-24 11:25:10 +08:00
parent 8ff1e21c95
commit 715050df57
+4 -4
View File
@@ -479,7 +479,7 @@ class user extends control
{
$this->user->update($userID);
if(dao::isError()) die(js::error(dao::getError()));
die(js::locate($this->createLink('company', 'browse'), 'parent'));
die(js::locate($this->session->userList ? $this->session->userList : $this->createLink('company', 'browse'), 'parent'));
}
$user = $this->user->getById($userID);
@@ -513,7 +513,7 @@ class user extends control
elseif($_POST)
{
if($this->post->account) $this->user->batchEdit();
die(js::locate($this->createLink('company', 'browse', "deptID=$deptID"), 'parent'));
die(js::locate($this->session->userList ? $this->session->userList : $this->createLink('company', 'browse', "deptID=$deptID"), 'parent'));
}
$this->lang->set('menugroup.user', 'company');
$this->lang->user->menu = $this->lang->company->menu;
@@ -585,7 +585,7 @@ class user extends control
else
{
$this->user->cleanLocked($account);
die(js::locate($this->createLink('company', 'browse'), 'parent'));
die(js::locate($this->session->userList ? $this->session->userList : $this->createLink('company', 'browse'), 'parent'));
}
}
@@ -606,7 +606,7 @@ class user extends control
else
{
$this->user->unbind($account);
die(js::locate($this->createLink('company', 'browse'), 'parent'));
die(js::locate($this->session->userList ? $this->session->userList : $this->createLink('company', 'browse'), 'parent'));
}
}