Changeset 6562


Ignore:
Timestamp:
06/21/12 10:56:31 (12 years ago)
Author:
gustavo
Message:

Ticket #2880 - Remoção do usuário ao abrir a tela de busca rápida

Location:
trunk/expressoMail1_2/js
Files:
2 edited

Legend:

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

    r6528 r6562  
    1414                }); 
    1515        });         
     16         
    1617        /* showlist */   
    1718        emQuickCatalogSearch.prototype.showList = function(data, begin, end, ID, field) 
     
    726727                        draw_email_box((data_[index].id_contact ? data_[index].id_contact : data_[index].id), content.find(field_).filter("input"), (data_[index].id_contact ? true : "G")); 
    727728                } 
     729                content.find(field_).filter("input").val(""); 
    728730                button.onclick = function(){ 
    729731                        remove_contact_field(document.getElementById(divs).innerHTML, button, divs); 
  • trunk/expressoMail1_2/js/draw_api.js

    r6549 r6562  
    37213721                //INPUT AUTO RESIZE      
    37223722                setTimeout(function(){ 
     3723                        input_search = $(input).val(); 
    37233724                        input.css("width", 15+(input.val().length * 9));         
    37243725                        input.parent().scrollTo(":last");        
     
    37263727        }) 
    37273728        //AO SAIR DO FOCO MONTAGEM DA CAIXA DE EMAIL 
    3728         .focusout(function(){ 
    3729                 if(!$(this).data('is_open')){ 
    3730                         if(!(f9 || $(this).parents("tr:first").find("button").hasClass("ui-state-active"))){ 
     3729        .focusout(function(e){ 
     3730                var these = $(this); 
     3731                if(!these.data('is_open')){ 
     3732                        if(!(   f9      ||      click   ||      $(this).parents("tr:first").find("button").hasClass("ui-state-active")  )){ 
    37313733                                if($(input).val() != "") 
    37323734                                        draw_email_box(input.val(), input); 
    37333735                                if(input.hasClass("box-input")) 
    37343736                                        input.remove(); 
    3735                         } 
    3736                  
    3737                         input_search = $(input).val(); 
    3738                         $(input).val(""); 
     3737                                $(input).val(""); 
     3738                                input_search = ""; 
     3739                        } 
     3740                        f9 = false; 
     3741                        click = false; 
    37393742                } 
    37403743        }) 
     
    37593762} 
    37603763var input_search = ""; 
     3764var click = false; 
    37613765//EVENTOS DA CAIXA 
    37623766function box_actions(box){ 
     
    40674071        //FUNÇÃO DOS BOTÕES PARA - CC - CCO 
    40684072        div.parents("tr:first").find("button").button().click(function(){ 
     4073                click = true; 
    40694074                if(!$(":focus").hasClass("new-message-input")) 
    40704075                        emQuickSearch(($(this).parents("tr:first").find("input").val() ? $(this).parents("tr:first").find("input").val() : input_search), "."+$(this).parents("tr:first").attr('class').split("-")[0], ID, undefined, true); 
Note: See TracChangeset for help on using the changeset viewer.