Ignore:
Timestamp:
04/04/11 11:22:14 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #1705 - Opção anexo “Baixar todos de uma vez”.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/expressoMail1_2/js/draw_api.js

    r3927 r3954  
    19041904                td6.vAlign = "top"; 
    19051905                attachments.align='left'; 
    1906                 var zipped_attachments = ''; 
    19071906                if(info_msg.attachments.length >= 1) { 
    1908                         var zipped_attachments  = document.createElement("TABLE"); 
    1909                         zipped_attachments.style.marginBottom = "4px"; 
    1910                         zipped_attachments.cellPadding="0"; 
    1911                         zipped_attachments.cellSpacing="0"; 
    1912                         var td = document.createElement("TD"); 
    19131907                        if(info_msg.attachments.length > 1) { 
    19141908                                var link_attachment      = document.createElement("A"); 
     
    19181912                                        link_attachment.setAttribute("href", "javascript:download_all_attachments('"+info_msg.msg_folder+"','"+info_msg.msg_number+"')"); 
    19191913                                link_attachment.innerHTML = " "+info_msg.attachments.length+' '+get_lang('files')+' :: '+get_lang('Download all atachments'); 
    1920                                 link_attachment.innerHTML += '<BR>'; 
    1921                                 td.appendChild(link_attachment); 
    1922                         } 
    1923                         var tr = document.createElement("TR"); 
     1914                                attachments.appendChild(link_attachment); 
     1915                        } 
    19241916                        if(parseInt(preferences.remove_attachments_function)) 
    19251917                        { 
     1918                                attachments.appendChild(document.createTextNode('  ')); 
    19261919                                var del_attachments = document.createElement("A"); 
    19271920                                del_attachments.setAttribute("href", "javascript:remove_all_attachments('"+info_msg.msg_folder+"','"+info_msg.msg_number+"')"); 
    19281921                                del_attachments.innerHTML = get_lang('remove all attachments'); 
    1929                                 del_attachments.appendChild(document.createElement('BR')); 
    1930                                 td.appendChild(del_attachments); 
    1931                                 tr.appendChild(td); 
    1932                         } 
    1933                         tr.appendChild(td); 
    1934                         zipped_attachments.appendChild(tr); 
    1935                         attachments.appendChild(zipped_attachments); 
     1922                                attachments.appendChild(del_attachments); 
     1923                        } 
     1924                        attachments.appendChild(document.createElement('BR')); 
    19361925                } 
    19371926 
     
    19401929                        var link_attachment = document.createElement("A"); 
    19411930                        link_attachment.setAttribute("href", proxy_mensagens.link_anexo(info_msg,i)); 
    1942 //                      link_attachment.setAttribute("href", "javascript:download_attachments('"+info_msg.msg_folder+"','"+info_msg.msg_number+"',"+i+",'"+info_msg.attachments[i].pid+"','"+info_msg.attachments[i].encoding+"')"); 
    19431931                        link_attachment.innerHTML = url_decode(info_msg.attachments[i].name); 
    19441932                        link_attachment.innerHTML += " ("+borkb(info_msg.attachments[i].fsize)+")"; 
Note: See TracChangeset for help on using the changeset viewer.