Ignore:
Timestamp:
01/15/09 10:58:13 (15 years ago)
Author:
eduardoalex
Message:

Ticket #400

File:
1 edited

Legend:

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

    r605 r613  
    4141        setTimeout('auto_refresh()', time_refresh); 
    4242} 
    43  
     43/* 
     44        função que remove todos os anexos... 
     45*/ 
     46function remove_all_attachments(folder,msg_num) { 
     47         
     48        var call_back = function(data) { 
     49                                        if(!data.status) { //Em caso de erros, o status vem como false e o texto do erro vem em msg. 
     50                                                alert(data.msg); 
     51                                        } 
     52                                        else { 
     53                                                mail_msg = Element("tbody_box"); 
     54                                                msg_to_delete = Element(data.msg_num); 
     55                                                if (msg_to_delete) { 
     56                                                        if ( (msg_to_delete.style.backgroundColor != '') && (preferences.use_shortcuts == '1') ) 
     57                                                                select_msg('null', 'down'); 
     58                                                        mail_msg.removeChild(msg_to_delete);                                                                                             
     59                                                }//Remove o email com anexos da lista de emails. 
     60                                                write_msg(get_lang("Attachments removed"));//indica que os anexos foram removidos 
     61                                                refresh(); //dá um refresh na lista de emails, para que apareça o novo email sem anexos 
     62                                                delete_border(data.msg_num+'_r','false');//fecha a tela do email já removido. 
     63                                        } 
     64                                }; 
     65        if (confirm(get_lang("delete all attachments confirmation"))) 
     66                cExecute ("$this.imap_functions.remove_attachments&folder="+folder+"&msg_num="+msg_num, call_back); //chamada em ajax para a função de remover anexos. 
     67} 
    4468function watch_changes_in_msg(border_id) 
    4569{ 
Note: See TracChangeset for help on using the changeset viewer.