Changeset 8063 for trunk/expressoMail1_2/js/abas.js
- Timestamp:
- 03/28/13 16:24:07 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/abas.js
r7972 r8063 708 708 function listAttachment(ID) 709 709 { 710 var imap = new Array(); 711 var archiver = new Array(); 712 var files = new Array(); 713 714 if(typeof msgAttachments[ID] == "undefined"){ 715 return ""; 716 } 717 718 $.each(msgAttachments[ID], function(i, each){ 719 720 if(typeof(each) == "undefined") return true; 721 722 if(typeof $.parseJSON(each) == "number"){ 723 724 files.push(parseInt(each)); 725 } else { 726 if($.parseJSON(each).folder.indexOf("local_messages_") != -1){ 727 archiver.push($.parseJSON(each)); 728 } else { 729 imap.push(each); 730 } 731 } 732 }); 733 734 context = { 735 "imap" : imap, 736 "archiver" : archiver, 737 "files" : files 738 }; 739 740 return (typeof(msgAttachments[ID]) == 'undefined') ? '' : context; 741 } 710 return (typeof(msgAttachments[ID]) == 'undefined') ? '' : JSON.stringify(msgAttachments[ID]); 711 }
Note: See TracChangeset
for help on using the changeset viewer.