From aebc749f03904612e0e12cbe86942eda5c8ab346 Mon Sep 17 00:00:00 2001 From: ChanMyeong Date: Wed, 5 Sep 2012 10:31:41 +0000 Subject: [PATCH] Minor update for bootstrap.layout.js git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11167 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- .../login_info/skins/bootstrap.login/bootstrap.login.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/widgets/login_info/skins/bootstrap.login/bootstrap.login.js b/widgets/login_info/skins/bootstrap.login/bootstrap.login.js index f3a760882..716b66197 100644 --- a/widgets/login_info/skins/bootstrap.login/bootstrap.login.js +++ b/widgets/login_info/skins/bootstrap.login/bootstrap.login.js @@ -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('') .find('>.x_close').click(function(){ $(this).closest('#acField').slideUp(200, function(){ - $acTog.focus(); + $acTog.eq(0).focus(); }); return false; });