Changeset 3954
- Timestamp:
- 04/04/11 11:22:14 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/expressoMail1_2/js/draw_api.js
r3927 r3954 1904 1904 td6.vAlign = "top"; 1905 1905 attachments.align='left'; 1906 var zipped_attachments = '';1907 1906 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");1913 1907 if(info_msg.attachments.length > 1) { 1914 1908 var link_attachment = document.createElement("A"); … … 1918 1912 link_attachment.setAttribute("href", "javascript:download_all_attachments('"+info_msg.msg_folder+"','"+info_msg.msg_number+"')"); 1919 1913 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 } 1924 1916 if(parseInt(preferences.remove_attachments_function)) 1925 1917 { 1918 attachments.appendChild(document.createTextNode(' ')); 1926 1919 var del_attachments = document.createElement("A"); 1927 1920 del_attachments.setAttribute("href", "javascript:remove_all_attachments('"+info_msg.msg_folder+"','"+info_msg.msg_number+"')"); 1928 1921 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')); 1936 1925 } 1937 1926 … … 1940 1929 var link_attachment = document.createElement("A"); 1941 1930 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+"')");1943 1931 link_attachment.innerHTML = url_decode(info_msg.attachments[i].name); 1944 1932 link_attachment.innerHTML += " ("+borkb(info_msg.attachments[i].fsize)+")";
Note: See TracChangeset
for help on using the changeset viewer.