Changeset 6667


Ignore:
Timestamp:
06/28/12 09:27:38 (12 years ago)
Author:
thiago
Message:

Ticket #2908 - Problema ao excluir algum contato dinamico, e problema de focus.

File:
1 edited

Legend:

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

    r6663 r6667  
    88 * formatação, etc.)  
    99 */ 
     10  
     11focusIn = ""; 
     12canMakeBox = true; 
     13 
    1014onceOpenedHeadersMessages = {}; 
    1115var cache = new Array(); 
     
    36383642        input.keydown(function(e){ 
    36393643                f9 = false; 
     3644                focusIn = input; 
    36403645                var focusing = input.parent().find(".email-text"); 
    36413646                //SE OS CONTATOS DINAMICOS ESTAO ATIVOS 
     
    37713776                // Função para monstar a caixinha de e-mail. 
    37723777                function makeBoxMail(){ 
    3773                         if(!these.data('is_open')){ 
     3778                        if(canMakeBox){ 
    37743779                                if(!(   f9      ||      click   ||      $(this).parents("tr:first").find("button").hasClass("ui-state-active")  )){ 
    37753780                                        if($(input).val() != "") 
     
    40924097                        //EVENTO AO SELECIONAR UM CONTATO DINÂMICO 
    40934098                        select: function( event, ui ) { 
     4099                                canMakeBox = false; 
    40944100                                event.preventDefault(); 
    40954101                                $(this).val(""); 
     
    41074113                        $(this).data('is_open',true); 
    41084114                }).bind('catcompleteclose', function(event, ui) { 
     4115                        canMakeBox = true; 
    41094116                        $(this).data('is_open',false); 
    41104117                }) 
     
    41304137                                        if(!event.keyCode) 
    41314138                                                autocomplete.catcomplete( "close" ); 
     4139                                        canMakeBox = false; 
    41324140                                        $.Zebra_Dialog('Deseja remover <b>'+(item.name ? item.name+" - " : "")+ item.mail+'</b>?', { 
    41334141                                                        'type':     'question', 
     
    41424150                                                                        updateDynamicContact(); 
    41434151                                                                        cache = new Array(); 
     4152                                                                }else if(caption == 'Não'){ 
     4153                                                                        $(focusIn).focus(); 
    41444154                                                                } 
    41454155                                                        } 
Note: See TracChangeset for help on using the changeset viewer.