mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-27 07:09:56 +09:00
삭제
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2327 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
commit
8326004cb2
2773 changed files with 91485 additions and 0 deletions
36
widgets/login_info/skins/default/js/login.js
Normal file
36
widgets/login_info/skins/default/js/login.js
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
/* 로그인 영역에 포커스 */
|
||||
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 = current_url.setQuery('act','');
|
||||
location.href = url;
|
||||
}
|
||||
|
||||
/* 오픈아이디 로그인 후 */
|
||||
function completeOpenIDLogin(ret_obj, response_tags) {
|
||||
var redirect_url = ret_obj['redirect_url'];
|
||||
location.href = redirect_url;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue