Changeset 6335 for sandbox/2.4.1-3
- Timestamp:
- 05/29/12 09:25:20 (12 years ago)
- 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 3780 3780 var dynamicContactList = new Array(); 3781 3781 var myArray = contacts.split(","); 3782 //Variavel de teste...Remover depois... 3783 var flag = true; 3782 3784 for(var i in myArray){ 3783 3785 var dynamicContact = myArray[i].split(";"); 3784 if(dynamicContact.length > 1) 3786 3787 /* if(dynamicContact.length > 1) 3785 3788 dynamicContactList.push({name : dynamicContact[0], email: dynamicContact[1], value : (dynamicContact[0] +" - "+dynamicContact[1])}); 3786 3789 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 } 3788 3814 } 3789 3815 … … 3811 3837 //MONTAGEM DA LISTA DE CONTATOS DINÂMICOS DO AUTO COMPLETE 3812 3838 .data( "autocomplete" )._renderItem = function( ul, item ) { 3813 ul.css({"min-width":"2 0%", "max-height" : "150px", "overflow-y" : "auto"});3839 ul.css({"min-width":"280px", "width":"50%", "max-height" : "180px", "overflow-y" : "auto"}); 3814 3840 if( $(ul).find("li").length > 10 ){ 3815 3841 return; … … 3823 3849 text: false 3824 3850 }).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 }); 3826 3863 }); 3827 3864 }; -
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 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'%>"/> 3 10 <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 1321 1321 background-repeat : no-repeat !important; 1322 1322 } 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.