- Timestamp:
- 10/01/12 18:43:19 (11 years ago)
- Location:
- sandbox/2.4.3-expresso-rest
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.4.3-expresso-rest
-
sandbox/2.4.3-expresso-rest/expressoMail1_2/js/main.js
r7330 r7333 2505 2505 att.type = 'imapPart'; 2506 2506 var idATT = JSON.stringify(att); 2507 addAttachment( new_border_ID , idATT); 2508 2507 addAttachment( new_border_ID , idATT); 2508 2509 2509 var attach = {}; 2510 2511 attach.fileName = attach ments[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('(')); 2512 2512 attach.fullFileName = attach.fileName; 2513 2514 2513 if(attach.fileName.length > 20) 2515 2514 attach.fileName = attach.fileName.substr(0, 17) + " ... " + attach.fileName.substr(attach.fileName.length-9, attach.fileName.length); 2516 2517 attach.fileSize = attachments[i].text.substring(( attachments[i].text.lastIndexOf('(')+1), attachments[i].text.lastIndexOf(')')); 2515 attach.fileSize = attachText.substring((attachText.lastIndexOf('(')+1),attachText.lastIndexOf(')')); 2518 2516 attach.error = false; 2519 2517
Note: See TracChangeset
for help on using the changeset viewer.