mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Dialog: Fix typo
Closes gh-1447
Thanks Spencer Davis
(cherry picked from commit d95c23ae6c
)
This commit is contained in:
parent
0f99e9c969
commit
d6997254f0
@ -229,10 +229,10 @@ return $.widget( "ui.dialog", {
|
||||
|
||||
_moveToTop: function( event, silent ) {
|
||||
var moved = false,
|
||||
zIndicies = this.uiDialog.siblings( ".ui-front:visible" ).map(function() {
|
||||
zIndices = this.uiDialog.siblings( ".ui-front:visible" ).map(function() {
|
||||
return +$( this ).css( "z-index" );
|
||||
}).get(),
|
||||
zIndexMax = Math.max.apply( null, zIndicies );
|
||||
zIndexMax = Math.max.apply( null, zIndices );
|
||||
|
||||
if ( zIndexMax >= +this.uiDialog.css( "z-index" ) ) {
|
||||
this.uiDialog.css( "z-index", zIndexMax + 1 );
|
||||
|
Loading…
Reference in New Issue
Block a user