Merge branch 'master' of https://github.com/jquery/jquery-mobile into fr_1177

* 'master' of https://github.com/jquery/jquery-mobile:
  minor refactor from Scott's original suggestion on the issue
  navigation whitespace
This commit is contained in:
eddiemonge 2011-04-11 10:44:54 -07:00
commit 60ea1ddbdc

View file

@ -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 );