Changeset 8240 for branches/2.5


Ignore:
Timestamp:
10/23/13 13:00:04 (11 years ago)
Author:
douglas
Message:

Ticket #3494 - Preenchimento prematuro de caixas de destinatários ao compor mensagem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/expressoMail1_2/js/draw_api.js

    r8232 r8240  
    41424142                                   e.preventDefault(); 
    41434143                        } 
    4144                          
     4144            if ( (e.keyCode == 8) && (input.val().length == 1) ){  
     4145                $( this ).data( "autocomplete" ).close();  
     4146            }  
    41454147                        //SELECIONA O CONTATO E EVITA OUTROS COMANDOS 
    41464148                        if(e.keyCode == $.ui.keyCode.ENTER && $( this ).data( "autocomplete" ).menu.active){ 
     
    42434245        //AO SAIR DO FOCO MONTAGEM DA CAIXA DE EMAIL 
    42444246        .focusout(function(e){ 
    4245                 var these = $(this); 
    4246                 // Função para monstar a caixinha de e-mail. 
     4247        var these = $(this); 
     4248                // Função para montar a caixinha de e-mail. 
    42474249                function makeBoxMail(){ 
    42484250                        if(canMakeBox && !fastSearch){ 
     
    45964598        div.find("textarea").autocomplete({ 
    45974599            source: function(request, response){ 
     4600                if ($.trim(request.term).length == 0)  
     4601                    return false;  
    45984602                if ( request.term in cache ) { 
    45994603                    response( cache[ request.term ] ); 
     
    46164620            //EVENTO AO SELECIONAR UM CONTATO DINÂMICO 
    46174621            select: function( event, ui ) { 
    4618                 canMakeBox = false; 
     4622                canMakeBox = true; 
    46194623 
    46204624                event.preventDefault(); 
     
    46414645            minLength: 0 
    46424646        }).bind('autocompleteopen', function(event, ui) { 
    4643  
    46444647            $(this).data('is_open',true); 
    4645  
    46464648        }).bind('autocompleteclose', function(event, ui) { 
    4647  
    4648             canMakeBox = true; 
     4649            canMakeBox = false;  
    46494650            $(this).data('is_open',false); 
    46504651            $(this).blur().focus(); 
Note: See TracChangeset for help on using the changeset viewer.