Ignore:
Timestamp:
08/17/12 14:39:31 (12 years ago)
Author:
acoutinho
Message:

Ticket #3046 - Remover icone (Adicionar contato) quando o usuario for (Sem destinatario)

File:
1 edited

Legend:

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

    r7045 r7052  
    30833083        { 
    30843084                toaddress_array[ID] = break_comma(info_msg.toaddress2); 
     3085                var notValidUser = false; 
    30853086                if (toaddress_array[ID].length > 1) 
    30863087                { 
     
    30993100                        } else { 
    31003101                                toAdd = get_lang("without destination"); 
    3101                         } 
    3102  
    3103                         to.innerHTML += draw_plugin_cc(ID,toAdd); 
     3102                                notValidUser = true; 
     3103                        } 
     3104 
     3105                        to.innerHTML += draw_plugin_cc(ID,toAdd, notValidUser, notValidUser); 
    31043106                } 
    31053107 
     
    53005302        var idx_cc = 0; 
    53015303 
    5302 function draw_plugin_cc(ID, addrs){ 
     5304function draw_plugin_cc(ID, addrs, notValidUser){ 
    53035305        connector.loadScript("ccQuickAdd"); 
    53045306 
     
    53345336        }); 
    53355337        onclick = onclick.substr(0, onclick.length-1); 
    5336         var sm_envelope_img1 = '<img style="cursor:'+ (is_ie ? 'hand' : 'pointer') +'" title="' + get_lang("Add Contact") + 
    5337         '" onclick="ccQuickAddOne.showList(['+onclick+'])" src="./templates/'+template+'/images/user_card.png">'; 
     5338         
    53385339        var to_addybook_add = "<SPAN id='insert_plugin_"+idx_cc+"_"+ID+"'>"; 
    53395340        to_addybook_add += addrs; 
    5340         to_addybook_add +=  sm_envelope_img1; 
     5341 
     5342        if(!!!notValidUser) 
     5343        { 
     5344                var sm_envelope_img1 = '<img style="cursor:'+ (is_ie ? 'hand' : 'pointer') +'" title="' + get_lang("Add Contact") + 
     5345                        '" onclick="ccQuickAddOne.showList(['+onclick+'])" src="./templates/'+template+'/images/user_card.png">'; 
     5346                to_addybook_add +=  sm_envelope_img1; 
     5347        } 
     5348 
     5349 
    53415350        idx_cc++; 
    53425351        to_addybook_add += "</SPAN>"; 
Note: See TracChangeset for help on using the changeset viewer.