Ignore:
Timestamp:
08/03/12 15:57:28 (12 years ago)
Author:
eduardow
Message:

Ticket #2987 - Inconsistencia excluindo com tela modal aberta - teclas de atalho.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/expressoMail1_2/js/main.js

    r6867 r6931  
    36523652                                                                click   : function() 
    36533653                                                                { 
    3654                                                                         importEmails.dialog("destroy"); 
     3654                                                                        importEmails.dialog("close").dialog("destroy"); 
    36553655                                                                } 
    36563656                                                         }, 
     
    37023702                                                                } 
    37033703                                                         } 
    3704                                                 ] 
     3704                                                ],  
     3705            open: function(event, ui)   
     3706            {  
     3707                if(typeof(shortcut) != 'undefined') shortcut.disabled = true;   
     3708            },  
     3709            close: function(event, ui)   
     3710            {  
     3711                if(typeof(shortcut) != 'undefined') shortcut.disabled = false;   
     3712            }  
    37053713                }); 
    37063714 
     
    39153923                        modal: true, 
    39163924                        resizable : false, 
    3917                         close: function(event) { 
    3918                                 event.stopPropagation(); 
    3919                         }, 
     3925                        open: function(event, ui)   
     3926            {  
     3927                if(typeof(shortcut) != 'undefined') shortcut.disabled = true;   
     3928            },  
     3929            close: function(event, ui)   
     3930            {  
     3931                event.stopPropagation();  
     3932                if(typeof(shortcut) != 'undefined') shortcut.disabled = false;   
     3933            }, 
    39203934                        closeOnEscape: true 
    39213935                }); 
     
    40354049                                                                                $( this ).dialog( "close" ); 
    40364050                                                                        } 
    4037                                                                 } 
     4051                                                                },  
     4052                                                    close:function(event, ui)   
     4053                                                    {  
     4054                                                        if(typeof(shortcut) != 'undefined') shortcut.disabled = false;   
     4055                                                    },  
     4056                                                    open: function(event, ui)   
     4057                                                    {  
     4058                                                        if(typeof(shortcut) != 'undefined') shortcut.disabled = true;   
     4059                                                    }  
    40384060                                                        }); 
    40394061                                                        $(".ui-dialog-buttonpane").find(".ui-button:last").children().html("Atualizar"); 
Note: See TracChangeset for help on using the changeset viewer.