@@ -59,6 +59,7 @@ $.widget("ui.dialog", {
59
59
width : 300 ,
60
60
zIndex : 1000
61
61
} ,
62
+
62
63
_create : function ( ) {
63
64
this . originalTitle = this . element . attr ( 'title' ) ;
64
65
// #5742 - .attr() might return a DOMElement
@@ -177,6 +178,7 @@ $.widget("ui.dialog", {
177
178
uiDialog . bgiframe ( ) ;
178
179
}
179
180
} ,
181
+
180
182
_init : function ( ) {
181
183
if ( this . options . autoOpen ) {
182
184
this . open ( ) ;
@@ -203,7 +205,7 @@ $.widget("ui.dialog", {
203
205
204
206
return self ;
205
207
} ,
206
-
208
+
207
209
widget : function ( ) {
208
210
return this . uiDialog ;
209
211
} ,
@@ -258,12 +260,12 @@ $.widget("ui.dialog", {
258
260
var self = this ,
259
261
options = self . options ,
260
262
saveScroll ;
261
-
263
+
262
264
if ( ( options . modal && ! force ) ||
263
265
( ! options . stack && ! options . modal ) ) {
264
266
return self . _trigger ( 'focus' , event ) ;
265
267
}
266
-
268
+
267
269
if ( options . zIndex > $ . ui . dialog . maxZ ) {
268
270
$ . ui . dialog . maxZ = options . zIndex ;
269
271
}
@@ -305,11 +307,11 @@ $.widget("ui.dialog", {
305
307
if ( event . keyCode !== $ . ui . keyCode . TAB ) {
306
308
return ;
307
309
}
308
-
310
+
309
311
var tabbables = $ ( ':tabbable' , this ) ,
310
312
first = tabbables . filter ( ':first' ) ,
311
313
last = tabbables . filter ( ':last' ) ;
312
-
314
+
313
315
if ( event . target === last [ 0 ] && ! event . shiftKey ) {
314
316
first . focus ( 1 ) ;
315
317
return false ;
@@ -461,7 +463,6 @@ $.widget("ui.dialog", {
461
463
}
462
464
} ,
463
465
464
-
465
466
_position : function ( position ) {
466
467
var myAt = [ ] ,
467
468
offset = [ 0 , 0 ] ,
@@ -484,14 +485,14 @@ $.widget("ui.dialog", {
484
485
myAt [ i ] = offsetPosition ;
485
486
}
486
487
} ) ;
487
-
488
+
488
489
position = {
489
490
my : myAt . join ( " " ) ,
490
491
at : myAt . join ( " " ) ,
491
492
offset : offset . join ( " " )
492
493
} ;
493
494
}
494
-
495
+
495
496
position = $ . extend ( { } , $ . ui . dialog . prototype . options . position , position ) ;
496
497
} else {
497
498
position = $ . ui . dialog . prototype . options . position ;
@@ -516,7 +517,7 @@ $.widget("ui.dialog", {
516
517
uiDialog = self . uiDialog ,
517
518
isResizable = uiDialog . is ( ':data(resizable)' ) ,
518
519
resize = false ;
519
-
520
+
520
521
switch ( key ) {
521
522
//handling of deprecated beforeclose (vs beforeClose) option
522
523
//Ticket #4669 http://dev.jqueryui.com/ticket/4669
0 commit comments