Changeset 6512 for sandbox/2.4.1-3/expressoMail1_2/js/QuickCatalogSearch.js
- Timestamp:
- 06/15/12 09:17:48 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.4.1-3/expressoMail1_2/js/QuickCatalogSearch.js
r6422 r6512 598 598 599 599 final_contact = final_contact.replace(/\/n/, ""); 600 if(data_[parseInt(divs.split("_")[1])-1].type_contact == "G"){ 600 var index = parseInt(divs.split("_")[1])-1; 601 if(data_[index].type_contact == "G"){ 601 602 var ldap_id = preferences.expressoMail_ldap_identifier_recipient; 602 603 if(ldap_id){ 603 604 draw_email_box( 604 (data_[ parseInt(divs.split("_")[1])-1][ldap_id.toLowerCase()] ? data_[parseInt(divs.split("_")[1])-1][ldap_id.toLowerCase()][0] : final_contact)605 (data_[index][ldap_id.toLowerCase()] ? data_[index][ldap_id.toLowerCase()][0] : final_contact) 605 606 , content.find(field_).filter("input") 606 607 ); … … 609 610 } 610 611 }else{ 611 draw_email_box( data_[0].id_contact, content.find(field_).filter("input"), true);612 draw_email_box((data_[index].id_contact ? data_[index].id_contact : data_[index].id), content.find(field_).filter("input"), (data_[index].id_contact ? true : "G")); 612 613 } 613 614 button.onclick = function(){
Note: See TracChangeset
for help on using the changeset viewer.