Changeset 6663 for trunk


Ignore:
Timestamp:
06/27/12 15:51:29 (12 years ago)
Author:
thiago
Message:

Ticket #2908 - Corrigido a inconsistência de nao montar a caixinha na nova mensagem.

File:
1 edited

Legend:

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

    r6654 r6663  
    37683768        .focusout(function(e){ 
    37693769                var these = $(this); 
    3770                 if(!these.data('is_open')){ 
    3771                         if(!(   f9      ||      click   ||      $(this).parents("tr:first").find("button").hasClass("ui-state-active")  )){ 
    3772                                 if($(input).val() != "") 
    3773                                         draw_email_box(input.val(), input); 
    3774                                 if(input.hasClass("box-input")) 
    3775                                         input.remove(); 
    3776                                 $(input).val(""); 
    3777                                 input_search = ""; 
    3778                         } 
    3779                         f9 = false; 
    3780                         click = false; 
    3781                 } 
     3770                 
     3771                // Função para monstar a caixinha de e-mail. 
     3772                function makeBoxMail(){ 
     3773                        if(!these.data('is_open')){ 
     3774                                if(!(   f9      ||      click   ||      $(this).parents("tr:first").find("button").hasClass("ui-state-active")  )){ 
     3775                                        if($(input).val() != "") 
     3776                                                draw_email_box(input.val(), input); 
     3777                                        if(input.hasClass("box-input")) 
     3778                                                input.remove(); 
     3779                                        $(input).val(""); 
     3780                                        input_search = ""; 
     3781                                } 
     3782                                f9 = false; 
     3783                                click = false; 
     3784                        } 
     3785                } 
     3786                 
     3787                /* 
     3788                 ** Verifica se o dynamic contact esta aberto ou fechado, caso esteja aberto,  
     3789                 ** demora 250 millisegundos para executar a função makeBoxMail. 
     3790                 */ 
     3791                these.data('is_open') ? setTimeout(makeBoxMail,250) : makeBoxMail(); 
    37823792        }) 
    37833793        //AO COLAR UM TEXTO NO CAMPO 
Note: See TracChangeset for help on using the changeset viewer.