Changeset 7108 for trunk/expressoMail1_2


Ignore:
Timestamp:
08/23/12 16:07:07 (12 years ago)
Author:
angelo
Message:

Ticket #2909 - Redimensionamento dinamico da janela auto completar destinatario

Location:
trunk/expressoMail1_2
Files:
2 edited

Legend:

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

    r7098 r7108  
    10961096 
    10971097/*Atualiza o array de mensagens selecionadas*/ 
    1098 function updateSelectedMsgs(selected,msg_number){        
     1098function updateSelectedMsgs(selected,msg_number){  
    10991099        var folder = $('#content_folders .folder.selected').attr('title'); 
    11001100        folder = folder ? folder : get_lang('INBOX'); 
     
    43384338                                var autocomplete = $(this)[0].element; 
    43394339                                //cálculo dinâmico da largura da lista 
    4340                                 var width = (item.label ? item.label.length : (item.value ? item.value.length : (item.email ? item.email.length : 20 ))); 
    4341                                 width = width*5 + (is_ie ? 170 : 200) + 16; 
     4340                                var width = (item.label ? item.label.length : (item.value ? item.value.length : (item.mail ? item.mail.length : 20 ))); 
     4341                                width = (is_ie ? width*2 : width*4) + 20; 
    43424342                                if (width < $(ul).width()) 
    43434343                                        width = $(ul).width(); 
  • trunk/expressoMail1_2/templates/default/listContacts.ejs

    r6528 r7108  
    88<li> 
    99        <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'%>"/> 
    10         <a style="width:80%; display: inline-block;"><%= data.name %> - <%= data.email %></a> 
     10        <a style="width:80%; display: inline-block;"><%= data.name.length <= 21 ? data.name : data.name.substr(0,18) + "..."%> - <%= data.email %></a> 
    1111        <span style="width:16px; height:16px; top:5px; <%=data.type == 'pessoal' ? 'display:none' : ''%>">Excluir contato recente</span>         
    1212<%}%> 
Note: See TracChangeset for help on using the changeset viewer.