Changeset 5158 for trunk/expressoMail1_2/js/main.js
- Timestamp:
- 11/08/11 15:30:53 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/main.js
r5134 r5158 405 405 406 406 function refresh(alert_new_msg){ 407 407 408 var handler_refresh = function(data){ 409 410 if(data['msg_range_end']) 411 if(data['msg_range_end'] > 0) 412 current_page = data['msg_range_end']/preferences.max_email_per_page; 408 413 if(!verify_session(data)) 409 414 return; … … 850 855 msgs_number = currentTab.toString().substr(0,currentTab.toString().indexOf('_r')); 851 856 } 852 857 refresh(); 853 858 if (parseInt(msgs_number) > 0 || msgs_number.length > 0){ 854 859 if(!not_opem_previus){ … … 1168 1173 data.cc = data.cc.replace(/</gi,"<"); 1169 1174 data.cc = data.cc.replace(/>/gi,">"); 1175 var _array_cc = data.cc.split(","); 1170 1176 } 1171 1177 if (document.getElementById("cco_" + border_ID)){ … … 1308 1314 Element("to_" + new_border_ID).value = data.to; 1309 1315 Element("to_" + new_border_ID).value += ', ' + data.to_all; 1316 1310 1317 if (data.cc){ 1318 data.cc = new Array(); 1319 var j = 0; 1320 for(i = 0; i < _array_cc.length; i++) { 1321 if(_array_cc[i].lastIndexOf(Element("user_email").value) == "-1"){ 1322 data.cc[j++] = _array_cc[i]; 1323 } 1324 } 1325 if (data.cc != get_lang("undisclosed-recipient")) 1326 data.cc = data.cc.join(","); 1327 else 1328 data.cc = ""; 1311 1329 document.getElementById("cc_" + new_border_ID).value = data.cc; 1312 1330 document.getElementById("a_cc_link_" + new_border_ID).style.display='none'; … … 1503 1521 default: 1504 1522 } 1505 1506 1523 //Insere o conteúdo da mensagem e a assinatura no editor de texto simples 1524 if (preferences.plain_text_editor == 1){ 1525 Element('textplain_rt_checkbox_'+new_border_ID).checked = true; 1526 var txtarea = Element('body_'+new_border_ID); 1527 if (txtarea != null){ 1528 if (data.body != undefined) 1529 txtarea.value = data.body; 1530 if (preferences.use_signature == "1") 1531 txtarea.value += '\n' + signature; 1532 } 1533 } 1507 1534 Element("border_id_" + new_border_ID).title = title; 1508 1535 set_border_caption("border_id_" + new_border_ID, title); … … 2382 2409 2383 2410 var folder= Element('border_id_0').innerHTML; 2384 var thead = Element('divScrollHead_'+numBox).firstChild.firstChild.innerHTML;2411 //var thead = Element('divScrollHead_'+numBox).firstChild.firstChild.innerHTML; 2385 2412 2386 2413 msgs_number = get_selected_messages(); … … 2399 2426 var window_print = window.open('','ExpressoMail','width='+print_width+',height=400,resizable=yes,scrollbars=yes,left='+x+',top='+y); 2400 2427 seekDot = (is_ie ? /width=24/gi : /width="24"/gi); 2401 thead = thead.replace(seekDot, "style='display:none'"); 2428 //thead = thead.replace(seekDot, "style='display:none'"); 2429 var thead = "<tr class=\"message_header\"><td id=\"message_header_SORTFROM_0\" class=\"th_resizable\" align=\"left\" width=\"20%\">De</td><td id=\"message_header_SORTSUBJECT_0\" class=\"th_resizable\" align=\"left\" width=\"*\">Assunto</td><td id=\"message_header_SORTARRIVAL_0\" class=\"th_resizable\" align=\"center\" width=\"11%\"><b>Data</b><img src=\"templates/default/images/arrow_descendant.gif\"></td><td id=\"message_header_SORTSIZE_0\" class=\"th_resizable\" align=\"left\" width=\"11%\">Tamanho</td></tr>"; 2402 2430 tbody = tbody.replace(seekDot, "style='display:none'"); 2403 2431 seekDot = (is_ie ? /width=16/gi : /width="16"/gi); 2404 thead = thead.replace(seekDot, "style='display:none'");2432 //thead = thead.replace(seekDot, "style='display:none'"); 2405 2433 tbody = tbody.replace(seekDot, "style='display:none'"); 2406 2434 seekDot = (is_ie ? /width=12/gi : /width="12"/gi); 2407 thead = thead.replace(seekDot, "style='display:none'");2435 //thead = thead.replace(seekDot, "style='display:none'"); 2408 2436 tbody = tbody.replace(seekDot, "style='display:none'"); 2409 thead = thead.replace("<td style=\"cursor: pointer;\"></td>", "");2410 thead = thead.replace("<td style=\"cursor: pointer;\" style='display:none'><input title=\"Selecionar todas as mensagens.\" class=\"checkbox\" id=\"chk_box_select_all_messages\" type=\"checkbox\"></td>", "");2411 2437 while (1){ 2412 2438 try{
Note: See TracChangeset
for help on using the changeset viewer.