Changeset 3355 for branches/2.2


Ignore:
Timestamp:
10/14/10 15:05:59 (14 years ago)
Author:
brunocosta
Message:

Ticket #1302 - na função print_msg foi mudada expressão que monta impressão.

Location:
branches/2.2/expressoMail1_2/js
Files:
2 edited

Legend:

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

    r3307 r3355  
    386386        for (i in anexos) 
    387387        { 
    388             nomeArquivo = anexos[i]['name'].substring(0,anexos[i]['name'].length - 4); 
    389             if(anexos[i]['name'] && anexos[i]['name'].match(/((jpg)|(jpeg)|(png)|(gif)|(bmp))/gi)) 
     388            if(anexos[i]['url'] && anexos[i]['url'].match(/((jpg)|(jpeg)|(png)|(gif)|(bmp))/gi)) 
    390389            { 
    391390                var er_imagens = new RegExp("\\.\\/inc\\/show_embedded_attach.php\\?msg_folder=[\\w/]+\\&msg_num=[0-9]+\\&msg_part="+anexos[i]['pid']); 
  • branches/2.2/expressoMail1_2/js/main.js

    r3342 r3355  
    20932093        var body                = Element('body_'+border_ID); 
    20942094 
    2095         if (!is_ie) {//altera o link da imagem para renderização na tela de impressão no firefox  
    2096                 var link = location.href.replace(/\/expressoMail1_2\/(.*)/, "");  
    2097                 link = link.replace(/\/expressoMail1_2\/(.*)/, "");  
    2098                 body.innerHTML = body.innerHTML.replace(/\.(\/inc\/show_embedded_attach\.php)/, link + "/expressoMail1_2$1");  
    2099                 body.innerHTML = body.innerHTML.replace(/(tmpLclAtt\/)/, link + "/expressoMail1_2/$1");  
    2100         } 
    2101  
    2102  
     2095        if(!is_ie) 
     2096            { 
     2097                var link = location.href.replace(/\/expressoMail1_2\/(.*)/, ""); 
     2098                var tab_tags = body.getElementsByTagName("IMG"); 
     2099                for(var i = 0; i < tab_tags.length;i++) 
     2100                    { 
     2101                        var _img = document.createElement("IMG"); 
     2102                        _img.src = tab_tags[i].src; 
     2103                        if(tab_tags[i].src.toUpperCase().indexOf('/INC/SHOW_EMBEDDED_ATTACH.PHP?MSG_FOLDER=') > -1) 
     2104                            { 
     2105                                _img.src = link + '/expressoMail1_2'+tab_tags[i].src.substr(tab_tags[i].src.toUpperCase().indexOf('/INC/SHOW_EMBEDDED_ATTACH.PHP?MSG_FOLDER=')); 
     2106                            } 
     2107                        tab_tags[i].parentNode.replaceChild(_img,tab_tags[i]); 
     2108                    } 
     2109            } 
    21032110        var print_width = screen.width - 200; 
    21042111        var x = ((screen.width - print_width) / 2); 
Note: See TracChangeset for help on using the changeset viewer.