Ignore:
Timestamp:
09/17/12 14:30:47 (12 years ago)
Author:
douglas
Message:

Ticket #0000 - Copiadas as alterações do Trunk. Versão final da 2.4.2.

Location:
branches/2.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4

  • branches/2.4/expressoMail1_2/js/QuickCatalogSearch.js

    r7122 r7228  
    710710                } 
    711711                verifyEmails(email, divs); 
    712                 final_contact = "\""+nome +"\" <"+email+">"; 
     712                final_contact = "\""+nome +"\" <"+email+"> "; 
    713713 
    714714                final_contact = final_contact.replace(/\/n/, "");  
    715715                var index = parseInt(divs.split("_")[1])-1; 
    716                 if(data_[index].type_contact == "G"){ 
     716        if(typeof(data_[index].isExternal) != 'undefined' &&  data_[index].isExternal == true) 
     717            draw_email_box(final_contact, content.find(field_).filter("textarea:first")); 
     718        else if(data_[index].type_contact == "G"){ 
    717719                        var ldap_id = preferences.expressoMail_ldap_identifier_recipient; 
    718720                        if(ldap_id){ 
    719721                                draw_email_box( 
    720722                                        (data_[index][ldap_id.toLowerCase()] ? data_[index][ldap_id.toLowerCase()][0] : final_contact) 
    721                                         , content.find(field_).filter("textarea:first")  
     723                                        , content.find(field_).filter("textarea:first") 
    722724                                ); 
    723725                        }else{ 
    724                                 draw_email_box(final_contact, content.find(field_).filter("textarea:first")) 
     726                                draw_email_box(final_contact, content.find(field_).filter("textarea:first")); 
    725727                        } 
    726728                }else{ 
    727                         draw_email_box((data_[index].id_contact ? data_[index].id_contact : data_[index].id), content.find(field_).filter("textarea:first"), (data_[index].id_contact ? true : "G"));  
     729                        draw_email_box((data_[index].id_contact ? data_[index].id_contact : data_[index].id), content.find(field_).filter("textarea:first"), (data_[index].id_contact ? true : "G")); 
    728730                } 
    729                 content.find(field_).filter("textarea:first").val("");  
     731                content.find(field_).filter("textarea:first").val(""); 
    730732                button.onclick = function(){ 
    731733                        remove_contact_field(document.getElementById(divs).innerHTML, button, divs); 
     
    800802                                                                        $( "#amount-text" ).focus(); 
    801803                                                                        event.stopPropagation(); 
    802                                                 if(typeof(shortcut) != 'undefined') shortcut.disabled = false;  
    803                                                                 },  
    804                         open: function(event, ui)  
    805                         {  
    806                             if(typeof(shortcut) != 'undefined') shortcut.disabled = true;  
    807                         }  
     804                                    if(typeof(shortcut) != 'undefined') shortcut.disabled = false;  
     805                                                                }, 
     806                        open: function(event, ui)  
     807                        { 
     808                            if(typeof(shortcut) != 'undefined') shortcut.disabled = true;  
     809                        } 
    808810                        }); 
    809811                }); 
     
    837839                                        content.find(field_).focus();     
    838840                                }  
    839                         if(typeof(shortcut) != 'undefined') shortcut.disabled = false;   
     841                if(typeof(shortcut) != 'undefined') shortcut.disabled = false;  
    840842                        }, 
    841843                        open: function () { 
     
    843845                                $("#selectable li:first").focus(); 
    844846                                document.getElementById("amount-text").focus();  
    845                                 if(typeof(shortcut) != 'undefined') shortcut.disabled = true; 
     847                if(typeof(shortcut) != 'undefined') shortcut.disabled = true;  
    846848                        }, 
    847849                        focus: function (event, ui) { 
Note: See TracChangeset for help on using the changeset viewer.