Ignore:
Timestamp:
08/21/12 14:29:48 (12 years ago)
Author:
eduardow
Message:

Ticket #3046 - Remover icone (adicionar contato) quando o usuario for (sem destinatario).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/expressoMail1_2/js/draw_api.js

    r7073 r7078  
    28582858        { 
    28592859                toaddress_array[ID] = break_comma(info_msg.toaddress2); 
     2860                var notValidUser = false;  
    28602861 
    28612862                if (toaddress_array[ID].length > 1) 
     
    28752876                        } else { 
    28762877                                toAdd = get_lang("without destination"); 
    2877                         } 
    2878  
    2879                         to.innerHTML += draw_plugin_cc(ID,toAdd); 
     2878                        notValidUser = true;  
     2879            }  
     2880 
     2881            to.innerHTML += draw_plugin_cc(ID,toAdd, notValidUser, notValidUser);  
    28802882                } 
    28812883 
     
    49604962        var idx_cc = 0; 
    49614963 
    4962 function draw_plugin_cc(ID, addrs){ 
     4964function draw_plugin_cc(ID, addrs, notValidUser){ 
    49634965        connector.loadScript("ccQuickAdd"); 
    49644966 
     
    49944996        }); 
    49954997        onclick = onclick.substr(0, onclick.length-1); 
    4996         var sm_envelope_img1 = '<img style="cursor:'+ (is_ie ? 'hand' : 'pointer') +'" title="' + get_lang("Add Contact") + 
    4997         '" onclick="ccQuickAddOne.showList(['+onclick+'])" src="./templates/'+template+'/images/user_card.png">'; 
     4998 
    49984999        var to_addybook_add = "<SPAN id='insert_plugin_"+idx_cc+"_"+ID+"'>"; 
    49995000        to_addybook_add += addrs; 
    5000         to_addybook_add +=  sm_envelope_img1; 
     5001         
     5002        if(!!!notValidUser)  
     5003    {  
     5004            var sm_envelope_img1 = '<img style="cursor:'+ (is_ie ? 'hand' : 'pointer') +'" title="' + get_lang("Add Contact") +  
     5005                    '" onclick="ccQuickAddOne.showList(['+onclick+'])" src="./templates/'+template+'/images/user_card.png">';  
     5006            to_addybook_add +=  sm_envelope_img1;  
     5007    }  
     5008 
     5009 
    50015010        idx_cc++; 
    50025011        to_addybook_add += "</SPAN>"; 
Note: See TracChangeset for help on using the changeset viewer.