Changeset 7337 for branches


Ignore:
Timestamp:
10/02/12 15:43:43 (7 years ago)
Author:
eduardow
Message:

Ticket #3135 - Problema ao encaminhar mensagem com anexo no IE.

File:
1 edited

Legend:

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

    r7328 r7337  
    25082508                var attach = {}; 
    25092509 
    2510                 attach.fileName =  attachments[i].text.substring(0, attachments[i].text.lastIndexOf('(')); 
     2510                var attachText = (is_ie ? attachments[i].innerText : attachments[i].text);  
     2511                    attach.fileName =  attachText.substring(0, attachText.lastIndexOf('(')); 
    25112512                attach.fullFileName = attach.fileName; 
    2512  
    25132513                if(attach.fileName.length > 20) 
    25142514                    attach.fileName = attach.fileName.substr(0, 17) + " ... " + attach.fileName.substr(attach.fileName.length-9, attach.fileName.length); 
    25152515 
    2516                 attach.fileSize =  attachments[i].text.substring(( attachments[i].text.lastIndexOf('(')+1), attachments[i].text.lastIndexOf(')')); 
     2516                attach.fileSize =  attachText.substring((attachText.lastIndexOf('(')+1),attachText.lastIndexOf(')')); 
    25172517                attach.error = false; 
    25182518 
Note: See TracChangeset for help on using the changeset viewer.