Changeset 6667
- Timestamp:
- 06/28/12 09:27:38 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/draw_api.js
r6663 r6667 8 8 * formatação, etc.) 9 9 */ 10 11 focusIn = ""; 12 canMakeBox = true; 13 10 14 onceOpenedHeadersMessages = {}; 11 15 var cache = new Array(); … … 3638 3642 input.keydown(function(e){ 3639 3643 f9 = false; 3644 focusIn = input; 3640 3645 var focusing = input.parent().find(".email-text"); 3641 3646 //SE OS CONTATOS DINAMICOS ESTAO ATIVOS … … 3771 3776 // Função para monstar a caixinha de e-mail. 3772 3777 function makeBoxMail(){ 3773 if( !these.data('is_open')){3778 if(canMakeBox){ 3774 3779 if(!( f9 || click || $(this).parents("tr:first").find("button").hasClass("ui-state-active") )){ 3775 3780 if($(input).val() != "") … … 4092 4097 //EVENTO AO SELECIONAR UM CONTATO DINÂMICO 4093 4098 select: function( event, ui ) { 4099 canMakeBox = false; 4094 4100 event.preventDefault(); 4095 4101 $(this).val(""); … … 4107 4113 $(this).data('is_open',true); 4108 4114 }).bind('catcompleteclose', function(event, ui) { 4115 canMakeBox = true; 4109 4116 $(this).data('is_open',false); 4110 4117 }) … … 4130 4137 if(!event.keyCode) 4131 4138 autocomplete.catcomplete( "close" ); 4139 canMakeBox = false; 4132 4140 $.Zebra_Dialog('Deseja remover <b>'+(item.name ? item.name+" - " : "")+ item.mail+'</b>?', { 4133 4141 'type': 'question', … … 4142 4150 updateDynamicContact(); 4143 4151 cache = new Array(); 4152 }else if(caption == 'Não'){ 4153 $(focusIn).focus(); 4144 4154 } 4145 4155 }
Note: See TracChangeset
for help on using the changeset viewer.