Ignore:
Timestamp:
02/22/13 12:37:16 (11 years ago)
Author:
marcosw
Message:

Ticket #3331 - Melhoria inserida no repositório trunk

File:
1 edited

Legend:

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

    r7889 r7907  
    708708function listAttachment(ID) 
    709709{ 
    710    return (typeof(msgAttachments[ID]) == 'undefined') ? '' : JSON.stringify(msgAttachments[ID]);  
    711 } 
    712  
     710    var imap     = new Array(); 
     711    var archiver = new Array(); 
     712     
     713    if(typeof msgAttachments[ID] == "undefined"){ 
     714        return ""; 
     715    } 
     716 
     717    $.each(msgAttachments[ID], function(i, each){ 
     718        
     719         if(typeof(each) == "undefined")  return true; 
     720         
     721       if($.parseJSON(each).folder.indexOf("local_messages_") != -1){ 
     722            archiver.push($.parseJSON(each)); 
     723       } else { 
     724            imap.push(each); 
     725       } 
     726    }); 
     727 
     728    context = { 
     729        "imap" : imap, 
     730        "archiver" : archiver 
     731    }; 
     732 
     733   return (typeof(msgAttachments[ID]) == 'undefined') ? '' : context; 
     734} 
     735 
Note: See TracChangeset for help on using the changeset viewer.