Changeset 7156 for branches


Ignore:
Timestamp:
09/04/12 11:39:14 (12 years ago)
Author:
eduardow
Message:

Ticket #3087 - Inconsistência em pastas que contenham acento em letra maiuscula.

Location:
branches/2.4/expressoMail1_2/js
Files:
4 edited

Legend:

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

    r6931 r7156  
    249249        div_attachment = document.getElementById("id_div_attachment"); 
    250250        var params = ''; 
    251  
     251        if(msg_folder)  
     252                msg_folder = utf8_decoder(Base64.decode(msg_folder));  
    252253        if (div_attachment == null){ 
    253254                var div_attachment = document.createElement("DIV"); 
     
    273274                download_attachments(null, null, data, null,null,'anexos.zip'); 
    274275        } 
    275         cExecute("$this.exporteml.download_all_attachments",handler_source,"folder="+msg_folder+"&num_msg="+msg_number); 
     276        cExecute("$this.exporteml.download_all_attachments",handler_source,"folder="+utf8_decoder(msg_folder)+"&num_msg="+msg_number); 
    276277} 
    277278//ADD forwarded files 
  • branches/2.4/expressoMail1_2/js/draw_api.js

    r7141 r7156  
    34533453                                                                i++; 
    34543454                                                        }else{ 
    3455                                                                 var href = './inc/get_archive.php?msgFolder=' + fdr + '&msgNumber=' + msg + '&indexPart=' + thumb.pid + '&image=true';  
     3455                                                                var href = './inc/get_archive.php?msgFolder=' + utf8_decoder(fdr) + '&msgNumber=' + msg + '&indexPart=' + thumb.pid + '&image=true';  
    34563456                                                                //var href = thumb.url;  
    3457                                                                 var src  = 'inc/get_archive.php?msgFolder=' + fdr + '&msgNumber=' + msg + '&indexPart=' + thumb.pid + '&image=thumbnail';  
     3457                                                                var src  = 'inc/get_archive.php?msgFolder=' + utf8_decoder(fdr) + '&msgNumber=' + msg + '&indexPart=' + thumb.pid + '&image=thumbnail';   
    34583458                                } 
    34593459                                var msgid= fdr+";;"+msg+";;"+i+";;"+thumb.pid+";;"+thumb.encoding;  
  • branches/2.4/expressoMail1_2/js/main.js

    r7142 r7156  
    35913591        if(_button == 2 || _button == 3) { 
    35923592                var _params = _target.id.split(";;"); 
    3593                 download_attachments(_params[0],_params[1],_params[2],_params[3],_params[4],file_type); 
     3593                download_attachments(Base64.encode(_params[0]),_params[1],_params[2],_params[3],_params[4],file_type); 
    35943594        } 
    35953595} 
  • branches/2.4/expressoMail1_2/js/messages_controller.js

    r7034 r7156  
    124124                } 
    125125                else { 
    126                         return "javascript:download_attachments('"+info_msg.msg_folder+"','"+info_msg.msg_number+"',"+numero_ordem_anexo+",'"+info_msg.attachments[numero_ordem_anexo].pid+"','"+info_msg.attachments[numero_ordem_anexo].encoding+"','"+info_msg.attachments[numero_ordem_anexo].name+"')"; 
    127                 } 
     126                        return "javascript:download_attachments('"+Base64.encode(info_msg.msg_folder)+"','"+info_msg.msg_number+"',"+numero_ordem_anexo+",'"+info_msg.attachments[numero_ordem_anexo].pid+"','"+info_msg.attachments[numero_ordem_anexo].encoding+"','"+info_msg.attachments[numero_ordem_anexo].name+"')";             } 
    128127        } 
    129128 
Note: See TracChangeset for help on using the changeset viewer.