Changeset 4232


Ignore:
Timestamp:
05/05/11 17:22:31 (8 years ago)
Author:
diegomoreno
Message:

Ticket #1821 - expressoMail1_2 - Ajuste para funcionamento da impressao no FF4.

File:
1 edited

Legend:

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

    r4218 r4232  
    22542254        } 
    22552255        var current_path = window.location.href.substr(0,window.location.href.lastIndexOf("/")); 
    2256         var window_print_head  = window_print.document.getElementsByTagName("head")[0]; 
    2257         // For IE 
    2258         if(typeof(window_print_head) == 'undefined'){ 
    2259                 window_print_head = window_print.document.createElement("head"); 
    2260                 window_print.document.appendChild(window_print_head); 
    2261         } 
    2262         var window_print_style = window_print.document.createElement("LINK"); 
    2263         window_print_style.href = current_path+'/templates/default/main.css'; 
    2264         window_print_style.type = "text/css"; 
    2265         window_print_style.rel = "stylesheet"; 
    2266         window_print_head.appendChild(window_print_style);       
     2256        var head = '<head><title></title><link href="'+current_path+'/templates/default/main.css" type="text/css" rel="stylesheet"></head>';   
     2257        window_print.document.write(head); 
    22672258 
    22682259        while (1){ 
     
    22952286                        html += show_attachs; //to show the names of the attachments 
    22962287                        html += "</tbody></table><hr>"; 
    2297                         window_print.document.body.innerHTML = html + body.innerHTML; 
     2288                        window_print.document.write(html + body.innerHTML); 
    22982289                        if(!is_ie){ 
    22992290                                var tab_tags = window_print.document.getElementsByTagName("IMG"); 
Note: See TracChangeset for help on using the changeset viewer.