Minor update for bootstrap.layout.js

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11167 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ChanMyeong 2012-09-05 10:31:41 +00:00
parent 0abf0cd3ee
commit aebc749f03

View file

@ -15,14 +15,15 @@ jQuery(function($){
$(this).attr('placeholder', idpw_placeholder);
});
// Toggle
var $acTog = $account.find('>a[href="#acField"]:eq(0)');
var $acTog = $('a[href="#acField"]');
$acTog.click(function(){
$(this).next('#acField').slideToggle(200, 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 {
$acTog.focus();
$this.focus();
}
});
return false;
@ -33,7 +34,7 @@ jQuery(function($){
.append('<button type="button" class="x_close">&times;</button>')
.find('>.x_close').click(function(){
$(this).closest('#acField').slideUp(200, function(){
$acTog.focus();
$acTog.eq(0).focus();
});
return false;
});