Changeset 6562
- Timestamp:
- 06/21/12 10:56:31 (12 years ago)
- Location:
- trunk/expressoMail1_2/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/QuickCatalogSearch.js
r6528 r6562 14 14 }); 15 15 }); 16 16 17 /* showlist */ 17 18 emQuickCatalogSearch.prototype.showList = function(data, begin, end, ID, field) … … 726 727 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")); 727 728 } 729 content.find(field_).filter("input").val(""); 728 730 button.onclick = function(){ 729 731 remove_contact_field(document.getElementById(divs).innerHTML, button, divs); -
trunk/expressoMail1_2/js/draw_api.js
r6549 r6562 3721 3721 //INPUT AUTO RESIZE 3722 3722 setTimeout(function(){ 3723 input_search = $(input).val(); 3723 3724 input.css("width", 15+(input.val().length * 9)); 3724 3725 input.parent().scrollTo(":last"); … … 3726 3727 }) 3727 3728 //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") )){ 3731 3733 if($(input).val() != "") 3732 3734 draw_email_box(input.val(), input); 3733 3735 if(input.hasClass("box-input")) 3734 3736 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; 3739 3742 } 3740 3743 }) … … 3759 3762 } 3760 3763 var input_search = ""; 3764 var click = false; 3761 3765 //EVENTOS DA CAIXA 3762 3766 function box_actions(box){ … … 4067 4071 //FUNÇÃO DOS BOTÕES PARA - CC - CCO 4068 4072 div.parents("tr:first").find("button").button().click(function(){ 4073 click = true; 4069 4074 if(!$(":focus").hasClass("new-message-input")) 4070 4075 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.