Changeset 4940


Ignore:
Timestamp:
08/16/11 17:02:36 (13 years ago)
Author:
roberto.santosjunior
Message:

Ticket #1820 - Mensagens arquivadas com anexo acentuados ou caracteres especiais.r4926

File:
1 edited

Legend:

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

    r4936 r4940  
    12551255                                        link_attachment.setAttribute("href", attachments[i].href); 
    12561256                                        link_attachment.innerHTML = attachments[i].firstChild.nodeValue + '<br/>'; 
     1257//                                        var a = attachments[i].firstChild.nodeValue; 
     1258//                                        var b = a.split("("); 
     1259//                                        b = b[0]; 
     1260//                                        var c = trim(b); 
    12571261                                        if (data.is_local_message) {//Local messages 
    12581262                                                document.getElementById("is_local_forward"+new_border_ID).value = "1"; 
     
    12651269                                                } 
    12661270                                                else { 
    1267                                                         var tempNomeArquivo = tmp.split("&newfilename="); 
    1268                                                         var nomeArquivo = tempNomeArquivo[tempNomeArquivo.length - 1]; 
     1271                                                        var tempNomeArquivo = attachments[i].firstChild.nodeValue.split("("); 
     1272                                                        var nomeArquivo = trim(tempNomeArquivo[0]); 
    12691273                                                } 
    1270                                                  
     1274 
    12711275                                                if(nomeArquivo.match(/\.[a-z]{1,3}\.php$/i)!=null) //Anexos no gears podem vir com .php depois de sua extensão. tenho que tirar o .php para ficar o nome real do arquivo. 
    12721276                                                        nomeArquivo = nomeArquivo.substring(0, nomeArquivo.length - 4); 
Note: See TracChangeset for help on using the changeset viewer.