mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-23 21:29:58 +09:00
31 lines
839 B
JavaScript
31 lines
839 B
JavaScript
/* 로그인 영역에 포커스 */
|
|
function doFocusUserId(fo_id) {
|
|
var fo_obj = xGetElementById(fo_id);
|
|
if(xGetCookie('user_id')) {
|
|
fo_obj.user_id.value = xGetCookie('user_id');
|
|
fo_obj.remember_user_id.checked = true;
|
|
try{
|
|
fo_obj.password.focus();
|
|
} catch(e) {};
|
|
} else {
|
|
try{
|
|
fo_obj.user_id.focus();
|
|
} catch(e) {};
|
|
}
|
|
}
|
|
|
|
/* 로그인 후 */
|
|
function completeLogin(ret_obj, response_tags, params, fo_obj) {
|
|
if(fo_obj.remember_user_id && fo_obj.remember_user_id.checked) {
|
|
var expire = new Date();
|
|
expire.setTime(expire.getTime()+ (7000 * 24 * 3600000));
|
|
xSetCookie('user_id', fo_obj.user_id.value, expire);
|
|
}
|
|
|
|
var url = location.href.setQuery('act','');
|
|
location.href = location.href.setQuery('act','');
|
|
}
|
|
|
|
|
|
|
|
|