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


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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9000, comment 9

    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                                                                 /*$(".ui-dialog:visible:last .ui-dialog-content")
    18                                                                         .data("ui-dialog")._focusTabbable();*/
    19                                                         }
    20                                                 }
    21                                         });
    22                                 }
    23                         });
    24                 }
    25 
    26 
    27 Comenten esta parte del codigo y con esto se soluciona:
    28 
    29 $(".ui-dialog:visible:last .ui-dialog-content")
    30         .data("ui-dialog")._focusTabbable();
    31 
    32 
    33 Saludos desde Merida, Yucatan.