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/QuickCatalogSearch.js

    r6567 r6910  
    800800                                                                        $( "#amount-text" ).focus(); 
    801801                                                                        event.stopPropagation(); 
    802                                                                 } 
     802                                    if(typeof(shortcut) != 'undefined') shortcut.disabled = false;  
     803                                                                }, 
     804                        open: function(event, ui)  
     805                        { 
     806                            if(typeof(shortcut) != 'undefined') shortcut.disabled = true;  
     807                        } 
    803808                        }); 
    804809                }); 
     
    814819                $(this).bind('keydown'); 
    815820                $(function() { 
    816         $( "#dialog:ui-dialog" ).dialog( "destroy" );                     
     821        $( "#dialog:ui-dialog" ).dialog("close").dialog( "destroy" );                     
    817822        $( "#dialog-modal" ).dialog({ 
    818823                        resizable: false, 
     
    832837                                        content.find(field_).focus();     
    833838                                }  
     839                if(typeof(shortcut) != 'undefined') shortcut.disabled = false;  
    834840                        }, 
    835841                        open: function () { 
     
    837843                                $("#selectable li:first").focus(); 
    838844                                document.getElementById("amount-text").focus();  
     845                if(typeof(shortcut) != 'undefined') shortcut.disabled = true;  
    839846                        }, 
    840847                        focus: function (event, ui) { 
Note: See TracChangeset for help on using the changeset viewer.