Common UI and .x_btn style cleaning.

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12222 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ChanMyeong 2012-11-14 15:28:42 +00:00
parent 9984a9e9af
commit 27c12c5dfb
55 changed files with 203 additions and 225 deletions

View file

@ -53,9 +53,9 @@ jQuery(function($){
var focusable = 'a,input,button,textarea,select';
$target.toggle();
if($target.is(':visible') && !$target.find(focusable).length){
$target.attr('tabindex','0').not(':disabled').focus();
$target.not(':disabled').attr('tabindex','0').css('outline','0').focus();
} else if($target.is(':visible') && $target.find(focusable).length) {
$target.find(focusable).not(':disabled').eq(0).focus();
$target.not(':disabled').find(focusable).eq(0).focus();
} else {
$this.focus();
}

File diff suppressed because one or more lines are too long