From c5ba91f0b9795e9844fd1c1d4f84a297becb0400 Mon Sep 17 00:00:00 2001 From: John Bender Date: Sun, 10 Apr 2011 22:58:21 -0700 Subject: [PATCH 1/2] navigation whitespace --- js/jquery.mobile.navigation.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/jquery.mobile.navigation.js b/js/jquery.mobile.navigation.js index 2cf58ff8..2231b7a9 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(); } @@ -695,7 +695,7 @@ ); event.preventDefault(); }); - + //add active state on vclick $( "a" ).live( "vclick", function(){ $(this).closest( ".ui-btn" ).not( ".ui-disabled" ).addClass( $.mobile.activeBtnClass ); From 09b736a399c031f4e59a5427f573b320585ad71a Mon Sep 17 00:00:00 2001 From: John Bender Date: Sun, 10 Apr 2011 22:59:06 -0700 Subject: [PATCH 2/2] minor refactor from Scott's original suggestion on the issue --- js/jquery.mobile.navigation.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/jquery.mobile.navigation.js b/js/jquery.mobile.navigation.js index 2231b7a9..ff7b7cdd 100644 --- a/js/jquery.mobile.navigation.js +++ b/js/jquery.mobile.navigation.js @@ -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){