diff --git a/js/jquery.mobile.navigation.js b/js/jquery.mobile.navigation.js index 2cf58ff8..ff7b7cdd 100644 --- a/js/jquery.mobile.navigation.js +++ b/js/jquery.mobile.navigation.js @@ -238,13 +238,13 @@ //direct focus to the page title, or otherwise first focusable element function reFocus( page ){ var lastClicked = page.jqmData( "lastClicked" ); - + if( lastClicked && lastClicked.length ){ lastClicked.focus(); } else { var pageTitle = page.find( ".ui-title:eq(0)" ); - + if( pageTitle.length ){ pageTitle.focus(); } @@ -371,9 +371,7 @@ if(base){ base.reset(); } //kill the keyboard - if( window.document.activeElement ){ - $( window.document.activeElement || "" ).add( "input:focus, textarea:focus, select:focus" ).blur(); - } + $( window.document.activeElement || "" ).add( "input:focus, textarea:focus, select:focus" ).blur(); function defaultTransition(){ if(transition === undefined){ @@ -695,7 +693,7 @@ ); event.preventDefault(); }); - + //add active state on vclick $( "a" ).live( "vclick", function(){ $(this).closest( ".ui-btn" ).not( ".ui-disabled" ).addClass( $.mobile.activeBtnClass );