File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -177,16 +177,14 @@ $.widget("ui.dialog", {
177177 // position on open
178178 moveToTop : function ( force , event ) {
179179
180- if ( $ . ui . dialog . topMostDialog == this
181- || ( this . options . modal && ! force )
180+ if ( ( this . options . modal && ! force )
182181 || ( ! this . options . stack && ! this . options . modal ) ) {
183182 return this . _trigger ( 'focus' , event ) ;
184183 }
185184
186185 if ( this . options . zIndex > $ . ui . dialog . maxZ ) {
187186 $ . ui . dialog . maxZ = this . options . zIndex ;
188187 }
189- $ . ui . dialog . topMostDialog = this ;
190188 ( this . overlay && this . overlay . $el . css ( 'z-index' , $ . ui . dialog . overlay . maxZ = ++ $ . ui . dialog . maxZ ) ) ;
191189
192190 //Save and then restore scroll since Opera 9.5+ resets when parent z-Index is changed.
@@ -503,7 +501,6 @@ $.extend($.ui.dialog, {
503501
504502 uuid : 0 ,
505503 maxZ : 0 ,
506- topMostDialog : null ,
507504
508505 getTitleId : function ( $el ) {
509506 return 'ui-dialog-title-' + ( $el . attr ( 'id' ) || ++ this . uuid ) ;
You can’t perform that action at this time.
0 commit comments