Changeset 4410 for branches/2.2.0.1


Ignore:
Timestamp:
05/13/11 12:04:58 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #1875 - Assunto não acompanha redimensionamento da coluna

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.0.1/expressoMail1_2/js/draw_api.js

    r4357 r4410  
    657657        if (tbl.emptyBody) 
    658658                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"; 
    662662        } 
    663663        else{ 
     
    685685        if (document.getElementById("table_message_header_box_"+numBox).emptyBody) 
    686686                return; 
    687         if (objCell.style.cursor == "e-resize" && detectLeftButton(ev)) { 
     687        if (objCell.style.cursor == "col-resize" && detectLeftButton(ev)) { 
    688688                var cellIndex = objCell.cellIndex; 
    689689                var adjIndex = adjCell.cellIndex; 
     
    738738        if (document.getElementById("table_message_header_box_"+numBox).emptyBody) 
    739739                return; 
    740         if (el.style.cursor == "e-resize" && detectLeftButton(ev)) { 
     740        if (el.style.cursor == "col-resize" && detectLeftButton(ev)) { 
    741741                var incIndex = ( (el.parentNode.cells.length > el.cellIndex + 1) ? 1 : -1 ); 
    742742                var msgTable = getMessagesTable(el); 
     
    12581258                if(headers_msgs.msg_sample && preferences.preview_msg_subject == "1") 
    12591259                { 
    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; 
    12611264                } 
    12621265 
     
    14261429                if ((headers_msgs.subject)&&(headers_msgs.subject.length > 50)) 
    14271430                { 
    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                        } 
    14341442                } 
    14351443                else 
Note: See TracChangeset for help on using the changeset viewer.