mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
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:
commit
60ea1ddbdc
1 changed files with 4 additions and 6 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue