Changeset 4461 for sandbox/2.2.0.2/expressoMail1_2/js/draw_api.js
- Timestamp:
- 05/19/11 17:55:45 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.2.0.2/expressoMail1_2/js/draw_api.js
r4457 r4461 657 657 if (tbl.emptyBody) 658 658 return; 659 if ((((cellWidth-cellMouseX)<15)||((el.style.cursor==" e-resize")&&(detectLeftButton())))&&((el.className=="th_resizable")&&(el.cellIndex+1<el.parentNode.cells.length))){660 if (tbl) tbl.style.cursor = " e-resize";661 el.style.cursor =" e-resize";659 if ((((cellWidth-cellMouseX)<15)||((el.style.cursor=="col-resize")&&(detectLeftButton())))&&((el.className=="th_resizable")&&(el.cellIndex+1<el.parentNode.cells.length))){ 660 if (tbl) tbl.style.cursor = "col-resize"; 661 el.style.cursor ="col-resize"; 662 662 } 663 663 else{ … … 685 685 if (document.getElementById("table_message_header_box_"+numBox).emptyBody) 686 686 return; 687 if (objCell.style.cursor == " e-resize" && detectLeftButton(ev)) {687 if (objCell.style.cursor == "col-resize" && detectLeftButton(ev)) { 688 688 var cellIndex = objCell.cellIndex; 689 689 var adjIndex = adjCell.cellIndex; … … 738 738 if (document.getElementById("table_message_header_box_"+numBox).emptyBody) 739 739 return; 740 if (el.style.cursor == " e-resize" && detectLeftButton(ev)) {740 if (el.style.cursor == "col-resize" && detectLeftButton(ev)) { 741 741 var incIndex = ( (el.parentNode.cells.length > el.cellIndex + 1) ? 1 : -1 ); 742 742 var msgTable = getMessagesTable(el); … … 1258 1258 if(headers_msgs.msg_sample && preferences.preview_msg_subject == "1") 1259 1259 { 1260 tr_element.msg_sample = headers_msgs.msg_sample.body.substr(0,120) + "..."; //trecho do body que sera exibido com o assunto; 1260 if (cssForResizing) //Colunas redimensionaveis - nao trunca 1261 tr_element.msg_sample = headers_msgs.msg_sample.body.substr(0,180) + "..."; //trecho do body que sera exibido com o assunto; 1262 else 1263 tr_element.msg_sample = headers_msgs.msg_sample.body.substr(0,120) + "..."; //trecho do body que sera exibido com o assunto; 1261 1264 } 1262 1265 … … 1426 1429 if ((headers_msgs.subject)&&(headers_msgs.subject.length > 50)) 1427 1430 { 1428 //Modificacao para evitar que o truncamento do assunto quebre uma NCR - #1189 1429 pos = headers_msgs.subject.indexOf("&",45); 1430 if ((pos > 0) && (pos <= 50) && ((headers_msgs.subject.charAt(pos+5) == ";") || (headers_msgs.subject.charAt(pos+6) == ";"))) 1431 td_element4.innerHTML += headers_msgs.subject.substring(0,pos+6) + "..." + "<span style=\"color:#b3b3b3;\"> " + tr_element.msg_sample +"</span>"; 1432 else 1433 td_element4.innerHTML += headers_msgs.subject.substring(0,50) + "..." + "<span style=\"color:#b3b3b3;\"> " + tr_element.msg_sample +"</span>";//modificacao feita para exibir o trecho do body ao lado do assunto da mensagem; 1431 if (cssForResizing) 1432 //Colunas redimensionaveis - nao trunca 1433 td_element4.innerHTML += headers_msgs.subject + "<span style=\"color:#b3b3b3;\"> " + tr_element.msg_sample +"</span>"; 1434 else { 1435 //Modificacao para evitar que o truncamento do assunto quebre uma NCR - #1189 1436 pos = headers_msgs.subject.indexOf("&",45); 1437 if ((pos > 0) && (pos <= 50) && ((headers_msgs.subject.charAt(pos+5) == ";") || (headers_msgs.subject.charAt(pos+6) == ";"))) 1438 td_element4.innerHTML += headers_msgs.subject.substring(0,pos+6) + "..." + "<span style=\"color:#b3b3b3;\"> " + tr_element.msg_sample +"</span>"; 1439 else 1440 td_element4.innerHTML += headers_msgs.subject.substring(0,50) + "..." + "<span style=\"color:#b3b3b3;\"> " + tr_element.msg_sample +"</span>";//modificacao feita para exibir o trecho do body ao lado do assunto da mensagem; 1441 } 1434 1442 } 1435 1443 else
Note: See TracChangeset
for help on using the changeset viewer.