page anchor: focus moved to target area.

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12601 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ChanMyeong 2013-01-29 06:07:28 +00:00
parent 6d13cd0b43
commit 5f83837088
5 changed files with 7 additions and 6 deletions

View file

@ -140,6 +140,11 @@ if(jQuery) jQuery.noConflict();
/* jQuery(document).ready() */
jQuery(function($) {
// Anchor: focus move to target
$('a[href^="#"]').click(function(){
$($(this).attr('href')).attr('tabindex','0').css('outline','0').focus();
});
/* select - option의 disabled=disabled 속성을 IE에서도 체크하기 위한 함수 */
if($.browser.msie) {
$('select').each(function(i, sels) {

1
common/js/common.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -25,7 +25,6 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="{geturl('')}">HOME</a>
<div class="nav-collapse">
<ul class="nav">
<li loop="$GNB->list=>$key1,$val1" class="dropdown"|cond="!$val1['selected']" class="dropdown active"|cond="$val1['selected']">

View file

@ -21,10 +21,6 @@ function completeInstallModule(ret_obj) {
jQuery(function($){
// iSO mobile device toolbar remove
window.scrollTo(0,0);
// Skip to content
$('.x .skipNav>a').click(function(){
$($(this).attr('href')).attr('tabindex','0').css('outline','0').focus();
});
// TARGET toggle
$(document.body).on('click', '.x [data-toggle]', function(){
var $this = $(this);

File diff suppressed because one or more lines are too long