Files
EasySoft-ZenTaoPMS/module/user/js/common.js
chencongzhi520@gmail.com ab0708f3fa * finish task#893.
2012-08-29 07:17:59 +00:00

26 lines
527 B
JavaScript

/**
* Switch account
*
* @param string $account
* @param string $method
* @access public
* @return void
*/
function switchAccount(account, method)
{
if(method == 'dynamic')
{
link = createLink('user', method, 'period=' + period + '&account=' + account);
}
else if(method == 'todo')
{
link = createLink('user', method, 'account=' + account + '&type=' + type);
}
else
{
link = createLink('user', method, 'account=' + account);
}
location.href=link;
}