File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ $.widget("ui.dialog", {
6464 'aria-labelledby' : titleId
6565 } )
6666 . mousedown ( function ( event ) {
67- self . moveToTop ( event ) ;
67+ self . moveToTop ( false , event ) ;
6868 } ) ,
6969
7070 uiDialogContent = this . element
@@ -200,7 +200,7 @@ $.widget("ui.dialog", {
200200 this . _trigger ( 'focus' , event ) ;
201201 } ,
202202
203- open : function ( event ) {
203+ open : function ( ) {
204204 if ( this . _isOpen ) { return ; }
205205
206206 var options = this . options ,
@@ -211,7 +211,7 @@ $.widget("ui.dialog", {
211211 this . _size ( ) ;
212212 this . _position ( options . position ) ;
213213 uiDialog . show ( options . show ) ;
214- this . moveToTop ( true , event ) ;
214+ this . moveToTop ( true ) ;
215215
216216 // prevent tabbing out of modal dialogs
217217 ( options . modal && uiDialog . bind ( 'keypress.ui-dialog' , function ( event ) {
@@ -243,7 +243,7 @@ $.widget("ui.dialog", {
243243 . filter ( ':first' )
244244 . focus ( ) ;
245245
246- this . _trigger ( 'open' , event ) ;
246+ this . _trigger ( 'open' ) ;
247247 this . _isOpen = true ;
248248 } ,
249249
You can’t perform that action at this time.
0 commit comments