Changeset 6335 for sandbox/2.4.1-3


Ignore:
Timestamp:
05/29/12 09:25:20 (12 years ago)
Author:
douglasz
Message:

Ticket #2768 - Melhorias na inserção de destinatário.

Location:
sandbox/2.4.1-3/expressoMail1_2
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.4.1-3/expressoMail1_2/js/draw_api.js

    r6334 r6335  
    37803780                var dynamicContactList = new Array(); 
    37813781                var myArray = contacts.split(","); 
     3782                //Variavel de teste...Remover depois... 
     3783                var flag = true; 
    37823784                for(var i in myArray){ 
    37833785                        var dynamicContact = myArray[i].split(";"); 
    3784                         if(dynamicContact.length > 1) 
     3786                                                 
     3787                        /* if(dynamicContact.length > 1) 
    37853788                                dynamicContactList.push({name : dynamicContact[0], email: dynamicContact[1], value : (dynamicContact[0] +" - "+dynamicContact[1])}); 
    37863789                        else 
    3787                                 dynamicContactList.push({name : "", email: dynamicContact[0], value :dynamicContact[0]}); 
     3790                                dynamicContactList.push({name : "", email: dynamicContact[0], value :dynamicContact[0]}); */ 
     3791                                 
     3792                        //Verificar outro modo para criar a divisão dos contatos dinâmicos 
     3793                        if( i <(myArray.length / 2)){ 
     3794                                var type = 'recente'; 
     3795 
     3796                                if(dynamicContact.length > 1) 
     3797                                        dynamicContactList.push({name : dynamicContact[0], email: dynamicContact[1], value : (dynamicContact[0] +" - "+dynamicContact[1]), type:type }); 
     3798                                else 
     3799                                        dynamicContactList.push({name : "", email: dynamicContact[0], value :dynamicContact[0], type:type}); 
     3800                         
     3801                        }else{ 
     3802                                var type = 'pessoal'; 
     3803 
     3804                                if(flag){ 
     3805                                        dynamicContactList.push({name : "", email: "", value :"", type:"linha"}); 
     3806                                        flag = false; 
     3807                                } 
     3808                                 
     3809                                if(dynamicContact.length > 1) 
     3810                                        dynamicContactList.push({name : dynamicContact[0], email: dynamicContact[1], value : (dynamicContact[0] +" - "+dynamicContact[1]), type:type }); 
     3811                                else 
     3812                                        dynamicContactList.push({name : "", email: dynamicContact[0], value :dynamicContact[0], type:type}); 
     3813                        }        
    37883814                } 
    37893815                 
     
    38113837                //MONTAGEM DA LISTA DE CONTATOS DINÂMICOS DO AUTO COMPLETE 
    38123838                .data( "autocomplete" )._renderItem = function( ul, item ) { 
    3813                         ul.css({"min-width":"20%", "max-height" : "150px", "overflow-y" : "auto"}); 
     3839                        ul.css({"min-width":"280px", "width":"50%", "max-height" : "180px", "overflow-y" : "auto"}); 
    38143840                        if( $(ul).find("li").length > 10 ){ 
    38153841                                return; 
     
    38233849                                text: false 
    38243850                        }).click(function(){ 
    3825                                 alert("Excluir?") 
     3851                                var removeLi = $(this).parents("li:first"); 
     3852                                $.Zebra_Dialog('Deseja remover este contato?', { 
     3853                                                'type':     'question', 
     3854                                                'custom_class': (is_ie ? 'configure-zebra-dialog' : ''), 
     3855                                                'title':    'Atenção', 
     3856                                                'buttons': ['Sim','Não'],                
     3857                                                'overlay_opacity': '0.5', 
     3858                                                'onClose':  function(caption) { 
     3859                                                        if(caption == 'Sim') 
     3860                                                                $(removeLi).remove(); 
     3861                                                } 
     3862                                }); 
    38263863                        }); 
    38273864                }; 
  • sandbox/2.4.1-3/expressoMail1_2/templates/default/listContacts.ejs

    r6281 r6335  
    1 <li > 
    2         <img style="position:relative; top:2px; "src="templates/default/images/user_add.png" title="Contatos recentes" /> 
     1 
     2<%if (data.type == 'linha'){%> 
     3<li> 
     4        <div class="line-separator"> 
     5                &nbsp; 
     6        </div> 
     7<%}else{%> 
     8<li> 
     9        <img style="position:relative; top:2px; "src="templates/default/images/<%=data.type == 'pessoal' ? 'contato_pessoal' : 'contato_recente'%>.png" title="Contato <%=data.type == 'pessoal' ? data.type : 'recente'%>"/> 
    310        <a style="width:80%; display: inline-block;"><%= data.name %> - <%= data.email %></a> 
    4         <span style="width:16px; height:16px; top:5px;">Excluir contato recente</span> 
    5 <li> 
    6   
     11        <span style="width:16px; height:16px; top:5px; <%=data.type == 'pessoal' ? 'display:none' : ''%>">Excluir contato recente</span>         
     12<%}%> 
     13</li> 
  • sandbox/2.4.1-3/expressoMail1_2/templates/default/main.css

    r6334 r6335  
    13211321        background-repeat : no-repeat !important; 
    13221322} 
     1323 
     1324.line-separator{ 
     1325        background: url(images/linha.png) repeat-x 0 96% ; 
     1326} 
Note: See TracChangeset for help on using the changeset viewer.