Changeset 8081 for branches


Ignore:
Timestamp:
04/04/13 12:14:18 (6 years ago)
Author:
douglas
Message:

Ticket #3406 - Problema ao apertar delete para excluir uma caixa de email

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/expressoMail1_2/js/shortcut.js

    r7757 r8081  
    271271shortcut.add("M",function(e){ if(e.preventDefault) e.preventDefault(); else event.returnValue = false; show_address_full();},{'disable_in_input':true}); 
    272272 
    273 shortcut.add("Delete",function(){ 
     273shortcut.add("Delete",function(e){ 
    274274        if(currentTab == 0){ 
    275275                proxy_mensagens.delete_msgs(current_folder, get_selected_messages(), 'null'); 
    276276        }else{ 
    277                 proxy_mensagens.delete_msgs(openTab.imapBox[currentTab], currentTab.substring(0, selMessageShortcut.indexOf("_r")), 'null'); 
     277                if (e.target.className.indexOf("box") == -1)  
     278                        proxy_mensagens.delete_msgs(openTab.imapBox[currentTab], currentTab.substring(0, selMessageShortcut.indexOf("_r")), 'null');  
    278279        } 
    279280} 
Note: See TracChangeset for help on using the changeset viewer.