Ignore:
Timestamp:
09/06/11 09:17:51 (13 years ago)
Author:
fernando-alberto
Message:

Ticket #1269 - Desenvolvimento da nova solucao de arquivamento local MailArchiver?, download de anexos

Location:
sandbox/expressoMail1_2/MailArchiver/2.2/expressoMail1_2/js
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sandbox/expressoMail1_2/MailArchiver/2.2/expressoMail1_2/js/MAExpressoPattern.js

    r5002 r5049  
    448448            //TODO "download" parametr at webservice => var urllink = 'http://10.200.242.186:4333/part/'+objAtt.attachment[m]["@id"]+'/download'; 
    449449            //var urllink = 'http://10.200.242.186:4333/part/'+objAtt.attachment[m]["@id"]; 
    450             var urllink = mail_archive_protocol+'://'+mail_archive_host+':'+mail_archive_port+'/part/'+objAtt.attachment[m]["@id"]; 
     450            //var urllink = mail_archive_protocol+'://'+mail_archive_host+':'+mail_archive_port+'/part/'+objAtt.attachment[m]["@id"]; 
     451            var urllink = mail_archive_protocol+'://'+mail_archive_host+':'+mail_archive_port+'/part/download/'+objAtt.attachment[m]["@id"]; 
    451452            srlData += 's:1:"' + m + '";' 
    452453                     + 'a:3:{' 
     
    566567                    Result_imagens = er_imagens.exec(thumbs[i]); 
    567568                    thumbs[i] = thumbs[i].replace(Result_imagens,anexos[i]['url']); 
    568                     thumbs[i] = thumbs[i].replace(/<IMG/i,'<img width="120"'); 
     569                    thumbs[i] = thumbs[i].replace(/<IMG/i,'<img width="120"');  
    569570                } 
    570571            } 
  • sandbox/expressoMail1_2/MailArchiver/2.2/expressoMail1_2/js/messages_controller.js

    r5035 r5049  
    9999                                        expresso_local_messages.get_url_anexo(info_msg.msg_number,info_msg.attachments[numero_ordem_anexo].pid)+ 
    100100                                        "')";*/ 
    101                        return "javascript:download_local_attachment('http://10.200.242.186:4333/part/"+info_msg.attachments[numero_ordem_anexo].pid+"')"; 
     101                       //return "javascript:download_local_attachment('http://10.200.242.186:4333/part/"+info_msg.attachments[numero_ordem_anexo].pid+"')"; 
     102                       return "javascript:download_local_attachment('"+ mail_archive_protocol+'://'+mail_archive_host+':'+mail_archive_port+'/part/download/' +info_msg.attachments[numero_ordem_anexo].pid + "')"; 
    102103                } 
    103104                else { 
Note: See TracChangeset for help on using the changeset viewer.