Changeset 1754


Ignore:
Timestamp:
12/04/09 15:42:31 (14 years ago)
Author:
rafaelraymundo
Message:

Ticket #807 - Implementada funcionalidade para mostrar título dos anexos na impressão do email

File:
1 edited

Legend:

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

    r1722 r1754  
    20782078                return; 
    20792079        } 
     2080 
     2081        //needed to get the names of the attachments... only. 
     2082        if(attachments != null) 
     2083        { 
     2084                var a = attachments.childNodes; 
     2085                var attachs = ""; 
     2086                var show_attachs = ""; 
     2087                for(i=0;i<a.length;i++) 
     2088                { 
     2089                        if(a[i].tagName && a[i].tagName == "A") 
     2090                        { 
     2091                                attachs += a[i].innerHTML; 
     2092                        } 
     2093                } 
     2094                show_attachs = "<tr><td width=7%><font size='2'>" + get_lang('Attachments: ')+ " </font></td><td><font size='2'>"+attachs+"</font></td></tr>"; 
     2095        } else{ 
     2096                show_attachs = ""; 
     2097        } 
    20802098         
    20812099        while (1){ 
     
    21022120                                html += "<tr><td width=7%><font size='2'>" + get_lang('Date') + ": </font></td><td><font size='2'>"+date.innerHTML+"</font></td></tr>";                  
    21032121                        html += "<tr><td width=7%><font size='2'>" + get_lang('Subject')+ ": </font></td><td><font size='2'>"+subject.innerHTML+"</font></td></tr>"; 
     2122                        html += show_attachs; //to show the names of the attachments 
    21042123                        html += "</tbody></table><hr>"; 
    21052124                        window_print.document.body.innerHTML = html + '<blockquote><font size="2">' + body.innerHTML + '</font></blockquote>'; 
Note: See TracChangeset for help on using the changeset viewer.