Changeset 6281 for sandbox


Ignore:
Timestamp:
05/23/12 11:57:24 (12 years ago)
Author:
douglasz
Message:

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

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

Legend:

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

    r6276 r6281  
    36693669                        autoFocus: true 
    36703670                }).data( "autocomplete" )._renderItem = function( ul, item ) { 
    3671                         ul.css({"max-height" : "115px", "overflow-y" : "auto"}); 
     3671                        ul.css({"min-width":"15%", "max-height" : "150px", "overflow-y" : "auto"}); 
    36723672                        if( $(ul).find("li").length > 10 ){ 
    36733673                                return; 
    36743674                        } 
    3675                         return $( "<li></li>" ) 
     3675                        var listContacts = DataLayer.render("../expressoMail1_2/templates/default/listContacts.ejs", item); 
     3676                         
     3677                        return $(listContacts).data( "item.autocomplete", item ).appendTo( ul ).find("span:last").button({ 
     3678                                        icons : { 
     3679                                        primary : "ui-icon-close" 
     3680                                }, 
     3681                                text: false 
     3682                        }).click(function(){ 
     3683                                alert("Excluir?") 
     3684                        }); 
     3685                        /* return $( "<li></li>" ) 
    36763686                                .data( "item.autocomplete", item ) 
    36773687                                .append( "<a>" + item.name + " - " + item.email + "</a>" ) 
    3678                                 .appendTo( ul ); 
     3688                                .appendTo( ul ); */ 
    36793689                }; 
    36803690        } 
Note: See TracChangeset for help on using the changeset viewer.