Changeset 427


Ignore:
Timestamp:
09/12/08 17:10:09 (16 years ago)
Author:
niltonneto
Message:

http://www.expressolivre.org/dev/ticket/326

Incluir o campo CCo na cópia da mensagem enviada.

Location:
trunk/expressoMail1_2/js
Files:
2 edited

Legend:

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

    r406 r427  
    673673                        if(data[i].Unseen == 'U') 
    674674                                msgs_unseen++; 
    675                 } 
     675        } 
    676676                Element("new_m").innerHTML = '<font style="color:red">' + msgs_unseen + '</font>'; 
    677677        } 
     
    11071107                tbody_message_others_options.appendChild(tr3); 
    11081108        } 
    1109          
     1109 
     1110        /* 
     1111         * @AUTHOR Rodrigo Souza dos Santos 
     1112         * @MODIFY-DATE 2008/09/11 
     1113         * @BRIEF Adding routine to create bcc field if there is one. 
     1114         */ 
     1115        if (info_msg.bcc) 
     1116        { 
     1117                var tr3 = document.createElement("tr"); 
     1118                tr3.className = "tr_message_header"; 
     1119                var td3 = document.createElement("td"); 
     1120                td3.innerHTML = get_lang("BCC") + " : "; 
     1121                var cco = document.createElement("td"); 
     1122                cco.id = "cco_"+ID; 
     1123 
     1124                var cco_values = document.createElement("input"); 
     1125                cco_values.id = "cco_values_"+ID; 
     1126                cco_values.type = "hidden"; 
     1127                cco_values.value = info_msg.cco; 
     1128 
     1129                ccoaddress_array[ID] = info_msg.bcc.split(",");          
     1130                if (ccoaddress_array[ID].length > 1){ 
     1131                        var div_ccoaddress = document.createElement("SPAN"); 
     1132                        div_ccoaddress.id = "div_ccoaddress_"+ID; 
     1133                        var div_ccoaddress_full = document.createElement("SPAN"); 
     1134                        div_ccoaddress_full.id = "div_ccoaddress_full_"+ID;              
     1135                        div_ccoaddress.style.display=""; 
     1136 
     1137                        /* 
     1138                         * The function below is ugly, doesn't possible use its. 
     1139                         * The problem is that the code's function was written 
     1140                         * on a hardcode concept. 
     1141                         */ 
     1142                        //cco.innerHTML = draw_plugin_cc(ID, ccoaddress_array[ID][0]); 
     1143                        cco.innerHTML = ccoaddress_array[ID][0]; 
     1144                        div_ccoaddress.innerHTML += " (<a STYLE='color: RED;' onclick=javascript:show_div_address_full('"+ID+"','cco');>"+get_lang('more')+"</a>)"; 
     1145                        cco.appendChild(div_ccoaddress); 
     1146                } 
     1147                else{ 
     1148                        /* 
     1149                         * The function below is ugly, it is not possible to use them. 
     1150                         * The problem is that the code's function was written 
     1151                         * on a hardcode concept. 
     1152                         */ 
     1153                        //cco.innerHTML = draw_plugin_cc(ID, info_msg.cco); 
     1154                        cco.innerHTML = info_msg.bcc; 
     1155                } 
     1156                cco.className = "header_message_field"; 
     1157                tr3.appendChild(td3); 
     1158                tr3.appendChild(cco); 
     1159                tr3.appendChild(cco_values); 
     1160                tbody_message_others_options.appendChild(tr3); 
     1161        } 
     1162 
    11101163        var tr4 = document.createElement("TR"); 
    11111164        tr4.className = "tr_message_header"; 
     
    21472200                 
    21482201                if(isOverLimit) { 
    2149                         alert("Esse campo possui muitos endereços ("+_address.length+" destinatários).\r\n"+ 
    2150                         "Para evitar o travamento do navegador, o botão 'Adicionar Contato' foi desabilitado!"); 
     2202                        alert("Esse campo possui muitos endereï¿œos ("+_address.length+" destinatï¿œrios).\r\n"+ 
     2203                        "Para evitar o travamento do navegador, o botï¿œo 'Adicionar Contato' foi desabilitado!"); 
    21512204                } 
    21522205 
  • trunk/expressoMail1_2/js/globals.js

    r320 r427  
    1515var cyrus_delimiter = ''; 
    1616var ccaddress_array = new Array(); 
     17var ccoaddress_array = new Array(); 
    1718var toaddress_array = new Array(); 
    1819var tree_folders = ''; 
Note: See TracChangeset for help on using the changeset viewer.