Changeset 376


Ignore:
Timestamp:
07/28/08 17:00:48 (16 years ago)
Author:
niltonneto
Message:

Ocorrência #14 (defeito: fixed)

File:
1 edited

Legend:

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

    r320 r376  
    5555                tmp = array_contacts[i].split(";"); 
    5656                if ( (RegExp_name.test(tmp[0])) || (RegExp_mail.test(tmp[1])) ){ 
    57                         tmp[1] = tmp[1].replace(tmp_mail, tmp_mail.bold()); 
    58                         tmp[0] = tmp[0].replace(tmp_mail, tmp_mail.bold()); 
    59                         match_contacts[match_index] = '"' + tmp[0] + '" <' + tmp[1] + '>'; 
    60                         match_index++; 
     57                        if (tmp[1]) 
     58                        { 
     59                                tmp[1] = tmp[1].replace(tmp_mail, tmp_mail.bold()); 
     60                                tmp[0] = tmp[0].replace(tmp_mail, tmp_mail.bold()); 
     61                                match_contacts[match_index] = '"' + tmp[0] + '" <' + tmp[1] + '>'; 
     62                                match_index++; 
     63                        } 
    6164                } 
    6265        } 
     
    8386                } 
    8487                //lines = lines + "<tr><td id=td_DD_"+i+" onClick=\"javascript:hideTip();makeMailList('"+match_contacts[i]+"','"+fld_id+"');document.getElementById('" + fld_id + "').focus();\" onmouseover=\"selectContact("+i+")\">" + match_contacts[i] + "</td></tr>" 
    85                 lines = lines + "<tr><td id=td_DD_"+i+" onMouseDown=\"javascript:hideTip();makeMailList('"+match_cont+"','"+fld_id+"');document.getElementById('" + fld_id + "').focus();\" onmouseover=\"selectContact("+i+")\">" + match_cont + "</td></tr>" 
     88                lines = lines + "<tr><td id=td_DD_"+i+" onMouseDown=\"javascript:hideTip();makeMailList('"+match_cont+"','"+fld_id+"');setTimeout('document.getElementById(\\'"+fld_id+"\\').focus()',300);\" onmouseover=\"selectContact("+i+")\">" + match_cont + "</td></tr>" 
    8689                match_cont = ""; 
    8790        } 
Note: See TracChangeset for help on using the changeset viewer.