Changeset 2926 for branches


Ignore:
Timestamp:
06/14/10 17:14:34 (14 years ago)
Author:
niltonneto
Message:

Ticket #1105 - Corrigido problema com campos 'from' e 'attachments' nulo.

File:
1 edited

Legend:

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

    r2840 r2926  
    848848                if (typeof(headers_msgs.from) == 'undefined') 
    849849                        return false; 
    850                 if(headers_msgs.from.email.toLowerCase() == Element("user_email").value) 
     850                if( headers_msgs.from.email && headers_msgs.from.email.toLowerCase() == Element("user_email").value ) 
    851851                {  
    852852                        td_element3.onmouseover = function () {this.title=headers_msgs.to.email;}; 
     
    11431143 
    11441144        td.innerHTML = _name.bold() + ', ' + info_msg.smalldate; 
    1145         if (info_msg.attachments.length > 0) 
     1145        if (info_msg.attachments && info_msg.attachments.length > 0) 
    11461146                td.innerHTML += "&nbsp<img style='cursor:pointer' onclick='javascript:Element(\"option_hide_more_"+ID+"\").onclick()' src ='templates/"+template+"/images/clip.gif' title='"+info_msg.attachments.names+"'>"; 
    11471147         
     
    16201620        tr5.appendChild(subject); 
    16211621        tbody_message_others_options.appendChild(tr5); 
    1622         if (info_msg.attachments.length > 0){ 
     1622        if ( info_msg.attachments && info_msg.attachments.length > 0 ){ 
    16231623                var tr6 = document.createElement("TR"); 
    16241624                tr6.className = "tr_message_header"; 
Note: See TracChangeset for help on using the changeset viewer.