Ignore:
Timestamp:
05/06/11 17:47:00 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #1726 - Ajuste para funcionamento da impressao no FF4. r4232

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.0.1/expressoMail1_2/js/main.js

    r4258 r4267  
    22442244        }        
    22452245        var current_path = window.location.href.substr(0,window.location.href.lastIndexOf("/")); 
    2246         var window_print_head  = window_print.document.getElementsByTagName("head")[0]; 
    2247         // For IE 
    2248         if(typeof(window_print_head) == 'undefined'){ 
    2249                 window_print_head = window_print.document.createElement("head"); 
    2250                 window_print.document.appendChild(window_print_head); 
    2251         } 
    2252         var window_print_style = window_print.document.createElement("LINK"); 
    2253         window_print_style.href = current_path+'/templates/default/main.css'; 
    2254         window_print_style.type = "text/css"; 
    2255         window_print_style.rel = "stylesheet"; 
    2256         window_print_head.appendChild(window_print_style);       
     2246        var head = '<head><title></title><link href="'+current_path+'/templates/default/main.css" type="text/css" rel="stylesheet"></head>'; 
     2247        window_print.document.write(head); 
    22572248 
    22582249        while (1){ 
     
    22852276                        html += show_attachs; //to show the names of the attachments 
    22862277                        html += "</tbody></table><hr>"; 
    2287                         window_print.document.body.innerHTML = html + body.innerHTML; 
     2278                        window_print.document.write(html + body.innerHTML); 
    22882279                        if(!is_ie){ 
    22892280                                var tab_tags = window_print.document.getElementsByTagName("IMG"); 
Note: See TracChangeset for help on using the changeset viewer.