Changeset 6281 for sandbox/2.4.1-3/expressoMail1_2/js/draw_api.js
- Timestamp:
- 05/23/12 11:57:24 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.4.1-3/expressoMail1_2/js/draw_api.js
r6276 r6281 3669 3669 autoFocus: true 3670 3670 }).data( "autocomplete" )._renderItem = function( ul, item ) { 3671 ul.css({"m ax-height" : "115px", "overflow-y" : "auto"});3671 ul.css({"min-width":"15%", "max-height" : "150px", "overflow-y" : "auto"}); 3672 3672 if( $(ul).find("li").length > 10 ){ 3673 3673 return; 3674 3674 } 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>" ) 3676 3686 .data( "item.autocomplete", item ) 3677 3687 .append( "<a>" + item.name + " - " + item.email + "</a>" ) 3678 .appendTo( ul ); 3688 .appendTo( ul ); */ 3679 3689 }; 3680 3690 }
Note: See TracChangeset
for help on using the changeset viewer.