Changeset 7534


Ignore:
Timestamp:
11/19/12 14:42:28 (11 years ago)
Author:
angelo
Message:

Ticket #3196 - Problema ao deletar mensagens via checkbox e selecao

File:
1 edited

Legend:

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

    r7406 r7534  
    287287 
    288288shortcut.add("Delete",function(){ 
    289          
    290289        if(currentTab == 0){ 
    291                 var selected_shortcut_msgs = ''; 
    292                 var tbody_box = Element('tbody_box'); 
    293                 all_messages = Element('tbody_box').childNodes; 
    294                  
    295                 for ( var i=0; i < all_messages.length; i++ ) 
    296                 { 
    297                         if ( exist_className(all_messages[i], 'selected_shortcut_msg') ) 
    298                         { 
    299                                 selected_shortcut_msgs += all_messages[i].id + ','; 
    300                                  
    301                                 if( all_messages[i].nextSibling ) 
    302                                         selMessageShortcut = all_messages[i].nextSibling.id + "-" + "down"; 
    303                                 else if(all_messages[i].previousSibling) 
    304                                         selMessageShortcut = all_messages[i].previousSibling.id + "-" + "up"; 
    305                         } 
    306                 } 
    307                  
    308                 selected_shortcut_msgs = selected_shortcut_msgs.substring(0,(selected_shortcut_msgs.length-1)); 
    309                  
    310                 if ( Element('border_id_0').className === 'menu-sel' ) 
    311                 { 
    312                         proxy_mensagens.delete_msgs(current_folder, selected_shortcut_msgs, 'null'); 
    313                 } 
    314                 else 
    315                 { 
    316                         //exec_msg_action('delete'); 
    317                         select_msg(selMessageShortcut.substring(0, selMessageShortcut.indexOf("-")), 
    318                                            selMessageShortcut.substring(selMessageShortcut.indexOf("-")), true ); 
    319                          
    320                         proxy_mensagens.delete_msgs(current_folder, selected_shortcut_msgs, 'null'); 
    321                 } 
     290                proxy_mensagens.delete_msgs(current_folder, get_selected_messages(), 'null'); 
    322291        }else{ 
    323                  
    324292                proxy_mensagens.delete_msgs(openTab.imapBox[currentTab], currentTab.substring(0, selMessageShortcut.indexOf("_r")), 'null'); 
    325          
    326293        } 
    327          
    328294} 
    329295,{'disable_in_input':true}); 
Note: See TracChangeset for help on using the changeset viewer.