Changeset 8240
- Timestamp:
- 10/23/13 13:00:04 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.5/expressoMail1_2/js/draw_api.js
r8232 r8240 4142 4142 e.preventDefault(); 4143 4143 } 4144 4144 if ( (e.keyCode == 8) && (input.val().length == 1) ){ 4145 $( this ).data( "autocomplete" ).close(); 4146 } 4145 4147 //SELECIONA O CONTATO E EVITA OUTROS COMANDOS 4146 4148 if(e.keyCode == $.ui.keyCode.ENTER && $( this ).data( "autocomplete" ).menu.active){ … … 4243 4245 //AO SAIR DO FOCO MONTAGEM DA CAIXA DE EMAIL 4244 4246 .focusout(function(e){ 4245 4246 // Função para mon star a caixinha de e-mail.4247 var these = $(this); 4248 // Função para montar a caixinha de e-mail. 4247 4249 function makeBoxMail(){ 4248 4250 if(canMakeBox && !fastSearch){ … … 4596 4598 div.find("textarea").autocomplete({ 4597 4599 source: function(request, response){ 4600 if ($.trim(request.term).length == 0) 4601 return false; 4598 4602 if ( request.term in cache ) { 4599 4603 response( cache[ request.term ] ); … … 4616 4620 //EVENTO AO SELECIONAR UM CONTATO DINÂMICO 4617 4621 select: function( event, ui ) { 4618 canMakeBox = false;4622 canMakeBox = true; 4619 4623 4620 4624 event.preventDefault(); … … 4641 4645 minLength: 0 4642 4646 }).bind('autocompleteopen', function(event, ui) { 4643 4644 4647 $(this).data('is_open',true); 4645 4646 4648 }).bind('autocompleteclose', function(event, ui) { 4647 4648 canMakeBox = true; 4649 canMakeBox = false; 4649 4650 $(this).data('is_open',false); 4650 4651 $(this).blur().focus();
Note: See TracChangeset
for help on using the changeset viewer.