Changeset 4223


Ignore:
Timestamp:
05/05/11 14:40:24 (9 years ago)
Author:
airton
Message:

Ticket #1835 - Falha na visualizacao de mensagens para impressao no Firefox

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.2.0.2/expressoMail1_2/js/main.js

    r4197 r4223  
    22312231         
    22322232        var current_path = window.location.href.substr(0,window.location.href.lastIndexOf("/")); 
    2233         var window_print_head  = window_print.document.getElementsByTagName("head")[0]; 
    2234         // For IE 
    2235         if(typeof(window_print_head) == 'undefined'){ 
    2236                 window_print_head = window_print.document.createElement("head"); 
    2237                 window_print.document.appendChild(window_print_head); 
    2238         } 
    2239         var window_print_style = window_print.document.createElement("LINK"); 
    2240         window_print_style.href = current_path+'/templates/default/main.css'; 
    2241         window_print_style.type = "text/css"; 
    2242         window_print_style.rel = "stylesheet"; 
    2243         window_print_head.appendChild(window_print_style);       
    2244  
     2233 
     2234        var head = '<head><title></title><link href="'+current_path+'/templates/default/main.css" type="text/css" rel="stylesheet"></head>';  
     2235        window_print.document.write(head);  
     2236         
    22452237        while (1){ 
    22462238                try{ 
     
    22722264                        html += show_attachs; //to show the names of the attachments 
    22732265                        html += "</tbody></table><hr>"; 
    2274                         window_print.document.body.innerHTML = html + body.innerHTML; 
     2266                        window_print.document.write(html + body.innerHTML);  
    22752267                        if(!is_ie){ 
    22762268                                var tab_tags = window_print.document.getElementsByTagName("IMG"); 
Note: See TracChangeset for help on using the changeset viewer.