Ignore:
Timestamp:
07/19/11 08:37:25 (13 years ago)
Author:
roberto.santosjunior
Message:

Ticket #1820 - Tratada as interações da janela de pesquisa por F9, em IE e FF.r4635

File:
1 edited

Legend:

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

    r4771 r4787  
    242242shortcut.add("Esc",function(){ 
    243243        var window_closed = false; 
    244         for(var window in arrayJSWin) 
    245         { 
    246                 if (arrayJSWin[window].visible) 
    247                 { 
     244        var search_win = document.getElementById( 'window_QuickCatalogSearch' ); 
     245         
     246        for(var window in arrayJSWin) 
     247        { 
     248                if (arrayJSWin[window].visible) 
     249                { 
     250                    window_closed = true; 
     251                    if(search_win.style.visibility == 'hidden'){ 
    248252                        arrayJSWin[window].close(); 
    249                         var search_win = document.getElementById( 'window_QuickCatalogSearch' ); 
    250                         search_win.style.visibility = 'hidden'; 
    251                         window_closed = true; 
    252                 } 
    253         } 
    254      
     253                    } 
     254                } 
     255        } 
     256        if((search_win) && (search_win.style.visibility == 'visible')){ 
     257            search_win.style.visibility = 'hidden'; 
     258            win.close(); 
     259       }         
     260 
    255261        if (!window_closed) 
    256262                delete_border(get_msg_id(), 'false'); 
Note: See TracChangeset for help on using the changeset viewer.