Changeset 4783


Ignore:
Timestamp:
07/18/11 12:20:59 (13 years ago)
Author:
airton
Message:

Ticket #2139 - Informacoes incompletas ao imprimir mensagem

File:
1 edited

Legend:

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

    r4779 r4783  
    22552255        var body                = Element('body_'+border_ID); 
    22562256 
     2257         
     2258        var att = ''; 
     2259         
     2260        var countAtt = 0;  
     2261                          
     2262        if(attachments !== null)  
     2263        {  
     2264                countAtt = attachments.getElementsByTagName('a').length;  
     2265                if(countAtt === 1)   
     2266                        att =  attachments.getElementsByTagName('a')[0].innerHTML;  
     2267                else if(countAtt > 1)  
     2268                        for (var i = 1; i <attachments.getElementsByTagName('a').length; i++)  
     2269                                att += attachments.getElementsByTagName('a')[i].innerHTML + " | ";  
     2270        }  
     2271                 
     2272        var body = Element('body_'+border_ID);  
     2273         
    22572274        if(!is_ie) 
    22582275            { 
     
    23272344                        if(date) 
    23282345                                html += "<tr><td width=7%><font size='2'>" + get_lang('Date') + ": </font></td><td><font size='2'>"+date.innerHTML+"</font></td></tr>"; 
     2346                         
    23292347                        html += "<tr><td width=7%><font size='2'>" + get_lang('Subject')+ ": </font></td><td><font size='2'>"+subject.innerHTML+"</font></td></tr>"; 
    2330                         html += show_attachs; //to show the names of the attachments 
     2348                        //html += show_attachs; //to show the names of the attachments 
     2349                        if (countAtt > 0) {  
     2350                    html += "<tr><td width=7%><font size='2'>" + get_lang('Attachments: ') + "</font></td><td><font size='2'>"+att+"</font></td></tr>";        
     2351                } 
    23312352                        html += "</tbody></table><hr>"; 
    23322353                        window_print.document.write(html + body.innerHTML); 
Note: See TracChangeset for help on using the changeset viewer.