Ignore:
Timestamp:
07/30/12 16:17:19 (12 years ago)
Author:
cristiano
Message:

Ticket #2987 - Inconsistência excluindo com tela modal aberta - teclas de atalho

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/js/main.js

    r6882 r6910  
    36823682                                                                click   : function() 
    36833683                                                                { 
    3684                                                                         importEmails.dialog("destroy"); 
     3684                                                                        importEmails.dialog("close").dialog("destroy"); 
    36853685                                                                } 
    36863686                                                         }, 
     
    37323732                                                                } 
    37333733                                                         } 
    3734                                                 ] 
     3734                                                ], 
     3735                open: function(event, ui)  
     3736                { 
     3737                    if(typeof(shortcut) != 'undefined') shortcut.disabled = true;  
     3738                }, 
     3739                close: function(event, ui)  
     3740                { 
     3741                    if(typeof(shortcut) != 'undefined') shortcut.disabled = false;  
     3742                } 
    37353743                }); 
    37363744 
     
    39413949                        modal: true, 
    39423950                        resizable : false, 
    3943                         close: function(event) { 
    3944                                 event.stopPropagation(); 
    3945                         }, 
     3951            open: function(event, ui)  
     3952            { 
     3953                if(typeof(shortcut) != 'undefined') shortcut.disabled = true;  
     3954            }, 
     3955            close: function(event, ui)  
     3956            { 
     3957                event.stopPropagation(); 
     3958                if(typeof(shortcut) != 'undefined') shortcut.disabled = false;  
     3959            }, 
    39463960                        closeOnEscape: true 
    39473961                }); 
     
    40614075                                                                                $( this ).dialog( "close" ); 
    40624076                                                                        } 
    4063                                                                 } 
     4077                                                                }, 
     4078                                close:function(event, ui)  
     4079                                { 
     4080                                    if(typeof(shortcut) != 'undefined') shortcut.disabled = false;  
     4081                                }, 
     4082                                open: function(event, ui)  
     4083                                { 
     4084                                    if(typeof(shortcut) != 'undefined') shortcut.disabled = true;  
     4085                                } 
    40644086                                                        }); 
    40654087                                                        $(".ui-dialog-buttonpane").find(".ui-button:last").children().html("Atualizar"); 
Note: See TracChangeset for help on using the changeset viewer.