Changeset 5382


Ignore:
Timestamp:
01/16/12 10:19:58 (12 years ago)
Author:
thiago
Message:

Ticket #2438 - O sistema remove o ultimo usuário quando adicionado pelo F9.

File:
1 edited

Legend:

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

    r5258 r5382  
    569569        if (emailList[0] != '"' && emailList.indexOf(",") < 0) 
    570570                        emailList = emailList.substr(end_); 
    571         if(emailList.lastIndexOf(",") > 0)  
     571        if(emailList.lastIndexOf(",") > 0) 
     572                if(emailList.substr(emailList.length-1, emailList.length) == "," || emailList.substr(emailList.length-2, 1) == ","){ 
    572573                        emailList = emailList.substr(0, emailList.lastIndexOf(",") + 1); 
    573          
     574                } else { 
     575                        emailList = emailList.substr(0, emailList.lastIndexOf("") + 1);          
     576                        final_contact = ","+final_contact; 
     577                } 
     578 
    574579                final_contact = final_contact.replace(/\/n/, ""); 
    575580                new_emailList = emailList + final_contact;     
Note: See TracChangeset for help on using the changeset viewer.