Changes between Initial Version and Version 1 of Ticket #9000, comment 8


Ignore:
Timestamp:
Jun 4, 2013, 11:31:53 AM (10 years ago)
Author:
Scott González
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9000, comment 8

    initial v1  
    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                 }