1 | | _createOverlay: function() { |
2 | | if ( !this.options.modal ) { |
3 | | return; |
4 | | } |
5 | | |
6 | | if ( !$.ui.dialog.overlayInstances ) { |
7 | | // Prevent use of anchors and inputs. |
8 | | // We use a delay in case the overlay is created from an |
9 | | // event that we're going to be cancelling. (#2804) |
10 | | this._delay(function() { |
11 | | // Handle .dialog().dialog("close") (#4065) |
12 | | ------> if ( $.ui.dialog.overlayInstances ) { |
13 | | this._on( this.document, { |
14 | | focusin: function( event ) { |
15 | | if ( !$( event.target ).closest(".ui-dialog").length ) { |
16 | | event.preventDefault(); |
17 | | ------Comenten esta parte del codigo------------------> /*$(".ui-dialog:visible:last .ui-dialog-content") |
18 | | ------Con eso se soluciona------------------> .data("ui-dialog")._focusTabbable();*/ |
19 | | } |
20 | | } |
21 | | }); |
22 | | } |
23 | | }); |
24 | | } |