Dialog: Fix line length issues

Ref gh-1690
This commit is contained in:
Alexander Schmitz 2016-03-30 23:41:14 -04:00 committed by Scott González
parent 545bcfec8e
commit c57f4e5ced

View File

@ -372,12 +372,14 @@ $.widget( "ui.dialog", {
first = tabbables.filter( ":first" ), first = tabbables.filter( ":first" ),
last = tabbables.filter( ":last" ); last = tabbables.filter( ":last" );
if ( ( event.target === last[ 0 ] || event.target === this.uiDialog[ 0 ] ) && !event.shiftKey ) { if ( ( event.target === last[ 0 ] || event.target === this.uiDialog[ 0 ] ) &&
!event.shiftKey ) {
this._delay( function() { this._delay( function() {
first.trigger( "focus" ); first.trigger( "focus" );
} ); } );
event.preventDefault(); event.preventDefault();
} else if ( ( event.target === first[ 0 ] || event.target === this.uiDialog[ 0 ] ) && event.shiftKey ) { } else if ( ( event.target === first[ 0 ] ||
event.target === this.uiDialog[ 0 ] ) && event.shiftKey ) {
this._delay( function() { this._delay( function() {
last.trigger( "focus" ); last.trigger( "focus" );
} ); } );