Changeset 804


Ignore:
Timestamp:
05/07/09 11:32:07 (15 years ago)
Author:
niltonneto
Message:

Ticket #341 - Ao digitar um nome no Para/CC/CCo em nova mensagem, parte do nome no autocompletar não fica em negrito.

File:
1 edited

Legend:

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

    r486 r804  
    1111var setTimeOutLayer = 0; 
    1212var div_message_scroll = 0; 
    13  
     13var tst_i = 0; 
    1414function search_contacts(key_pressed, fld_id) 
    1515{ 
     
    5151        var match_contacts = new Array(); 
    5252        var match_index = 0; 
    53          
     53 
    5454        for (var i=0; i<array_contacts.length; i++){ 
    5555                tmp = array_contacts[i].split(";"); 
     
    5757                        if (tmp[1]) 
    5858                        { 
    59                                 tmp[1] = tmp[1].replace(tmp_mail, tmp_mail.bold()); 
    60                                 tmp[0] = tmp[0].replace(tmp_mail, tmp_mail.bold()); 
     59                                var _tmp1 = RegExp_mail.exec(tmp[1]); 
     60                                if ( _tmp1 ) 
     61                                        tmp[1] = tmp[1].replace(RegExp_mail, _tmp1[0].bold()); 
     62                                var _tmp0 = RegExp_name.exec(tmp[0]); 
     63                                if ( _tmp0 ) 
     64                                        tmp[0] = tmp[0].replace(RegExp_name, _tmp0[0].bold()); 
    6165                                match_contacts[match_index] = '&quot;' + tmp[0] + '&quot; &lt;' + tmp[1] + '&gt;'; 
    6266                                match_index++; 
Note: See TracChangeset for help on using the changeset viewer.