mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 09:32:15 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11167 201d5d3c-b55e-5fd7-737f-ddc643e51545
50 lines
No EOL
1.2 KiB
JavaScript
50 lines
No EOL
1.2 KiB
JavaScript
/* After Login */
|
|
function completeLogin(ret_obj, response_tags, params, fo_obj) {
|
|
var url = current_url.setQuery('act','');
|
|
location.href = url;
|
|
}
|
|
|
|
jQuery(function($){
|
|
// Login
|
|
// placeholder
|
|
var $account = $('.account');
|
|
$account
|
|
.unwrap().unwrap()
|
|
.find('.idpw>input').each(function(){
|
|
var idpw_placeholder = $(this).attr('title');
|
|
$(this).attr('placeholder', idpw_placeholder);
|
|
});
|
|
// Toggle
|
|
var $acTog = $('a[href="#acField"]');
|
|
$acTog.click(function(){
|
|
$this = $(this);
|
|
$('#acField').slideToggle(200, function(){
|
|
var $user_id = $(this).find('input[name="user_id"]:eq(0)');
|
|
if($user_id.is(':visible')){
|
|
$user_id.focus();
|
|
} else {
|
|
$this.focus();
|
|
}
|
|
});
|
|
return false;
|
|
});
|
|
// Close
|
|
$account
|
|
.find('>#acField')
|
|
.append('<button type="button" class="x_close">×</button>')
|
|
.find('>.x_close').click(function(){
|
|
$(this).closest('#acField').slideUp(200, function(){
|
|
$acTog.eq(0).focus();
|
|
});
|
|
return false;
|
|
});
|
|
// Warning
|
|
var $acWarning = $account.find('.warning');
|
|
$('#keep_signed').change(function(){
|
|
if($(this).is(':checked')){
|
|
$acWarning.slideDown(200);
|
|
} else {
|
|
$acWarning.slideUp(200);
|
|
}
|
|
});
|
|
}); |